Without this change, compiler-rt gets compiled with optimizations when inside release build, even if the flag for compiling in debug mode for compiler-rt was specifically set.
Details
Details
- Reviewers
kcc kubamracek - Commits
- rGe89d0a8f5cd8: [compiler-rt] [CMake] Build compiler-rt with no optimizations if the flag says…
rCRT308072: [compiler-rt] [CMake] Build compiler-rt with no optimizations if the flag says…
rL308072: [compiler-rt] [CMake] Build compiler-rt with no optimizations if the flag says…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
Just curious, what's the use case?
Also, please triple-check that the default build still uses -O3
Comment Actions
@kcc it's often useful to have a compiler compiled with optimizations if your tests involve compiling stuff.
Otherwise running those tests takes forever.
Yet still, even in that configuration one might wish to attach a debugger to see what symbolication/coverage instrumentation/etc is doing.