[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 15:35:19 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:

"Android is always cross-compiling" was introduced in aa9d74cc5db8c2a16c2cd39bfb7e501ca1bb7c72, while for non-Android it seems to have been copied over in 6759fd9fdd3c9d49c8aaf64626d5a8c59648ed10. Then other architectures were added later, and there were refactorings, and so on.

https://github.com/llvm/llvm-project/pull/120798


More information about the llvm-commits mailing list