Open thesamesam opened 5 months ago
@llvm/issue-subscribers-lldb
Author: Sam James (thesamesam)
I am using the trunk(ac404632f991fc6e7dc75ef553a99676ba8002ce) and was not able to reproduce the issue/warnings with this cmake command -
cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_LINKER=lld -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE -DLLVM_BUILD_TOOLS=ON -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DLLVM_BUILD_EXAMPLES=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_FLAGS="-flto -Werror=odr -Werror=strict-aliasing" -DCMAKE_CXX_FLAGS="-flto -Werror=odr -Werror=strict-aliasing"
When building with
-flto -Werror=odr
to find possible runtime issues w/ LTO:Originally reported downstream at https://bugs.gentoo.org/858389.