[PATCH] D91620: [compiler-rt][test] Heed COMPILER_RT_DEBUG when compiling unittests
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 30 17:15:11 PST 2022
MaskRay added a comment.
I can confirm my frustration with sanitizer settings -O for various configurations... I'd like that we move toward a cleaner state that no automatic `-O` is added. The user is free to specify explicit CXXFLAGS by themselves.
`compiler-rt/CMakeLists.txt` sets `list(APPEND SANITIZER_COMMON_CFLAGS -O1)` for `COMPILER_RT_DEBUG`. Even `-O1` is oftentimes problematic for runtime debugging...
For a sanitized llvm-project build, `LLVM_OPTIMIZE_SANITIZED_BUILDS` changes `-O0` to `-O1`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91620/new/
https://reviews.llvm.org/D91620
More information about the llvm-commits
mailing list