[compiler-rt] [compiler-rt][test] Apply CFLAGS from sanitizer_common to all tests (PR #120798)
Aaron Puchert via llvm-commits
llvm-commits at lists.llvm.org
Tue May 6 16:27:53 PDT 2025
================
@@ -307,6 +307,14 @@ macro(get_test_cc_for_arch arch cc_out cflags_out)
if(APPLE)
list(APPEND ${cflags_out} ${DARWIN_osx_CFLAGS})
endif()
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ # ARM on Linux might use the slow unwinder as default and the unwind table
+ # is required to get a complete stacktrace.
+ list(APPEND ${cflags_out} -funwind-tables)
----------------
aaronpuchert wrote:
However, I think my points are unrelated and I should put the flags after the `if` anyway, as you suggested.
https://github.com/llvm/llvm-project/pull/120798
More information about the llvm-commits
mailing list