[all-commits] [llvm/llvm-project] fb0a92: [Compiler-RT] On Apple Platforms switch to always ...
Dan Liew via All-commits
all-commits at lists.llvm.org
Wed Aug 4 19:45:50 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb0a929512c25bd9859498cde7d1c6c73f550d61
https://github.com/llvm/llvm-project/commit/fb0a929512c25bd9859498cde7d1c6c73f550d61
Author: Dan Liew <dliew at apple.com>
Date: 2021-08-04 (Wed, 04 Aug 2021)
Changed paths:
M compiler-rt/CMakeLists.txt
Log Message:
-----------
[Compiler-RT] On Apple Platforms switch to always emitting full debug info
Previously the build used `-gline-tables-only` when `COMPILER_RT_DEBUG`
was off (default) and `-g` when `COMPILER_RT_DEBUG` was on. The end
result of this meant that the release build of the Sanitizer runtimes
were difficult to debug (e.g. information about variables and function
arguments were missing).
Presumably the reason for preferring `-gline-tables-only` for release
builds was to save space. However, for Apple platforms this doesn't
matter because debug info lives in separate `.dSYM` files (which aren't
shipped) rather than in the shipped `.dylib` files.
Now on Apple platforms we always emit full debug info if the compiler
supports it and we emit a fatal error if `-g` isn't supported.
rdar://79223184
Differential Revision: https://reviews.llvm.org/D107501
More information about the All-commits
mailing list