[compiler-rt] 15e9478 - [sanitizer] Disable COMPILER_RT_HAS_TRIVIAL_AUTO_INIT on PowerPC to fix the bot

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 9 14:33:42 PST 2024


Author: Vitaly Buka
Date: 2024-03-09T14:33:26-08:00
New Revision: 15e9478187d594016c2c355d8688be2e0a9b554e

URL: https://github.com/llvm/llvm-project/commit/15e9478187d594016c2c355d8688be2e0a9b554e
DIFF: https://github.com/llvm/llvm-project/commit/15e9478187d594016c2c355d8688be2e0a9b554e.diff

LOG: [sanitizer] Disable COMPILER_RT_HAS_TRIVIAL_AUTO_INIT on PowerPC to fix the bot

See issue #84654.

Added: 
    

Modified: 
    compiler-rt/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 8a2b138d8d7020..d562a6206c00e7 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -502,7 +502,10 @@ append_list_if(MINGW -fms-extensions SANITIZER_COMMON_CFLAGS)
 #
 # Note that this type of issue was discovered with lsan, but can apply to other
 # sanitizers.
-append_list_if(COMPILER_RT_HAS_TRIVIAL_AUTO_INIT -ftrivial-auto-var-init=pattern SANITIZER_COMMON_CFLAGS)
+# Disable PowerPC because of https://github.com/llvm/llvm-project/issues/84654.
+if(NOT "${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc")
+  append_list_if(COMPILER_RT_HAS_TRIVIAL_AUTO_INIT -ftrivial-auto-var-init=pattern SANITIZER_COMMON_CFLAGS)
+endif()
 
 # Set common link flags.
 # TODO: We should consider using the same model as libc++, that is use either


        


More information about the llvm-commits mailing list