Skip to content

Commit 15e9478

Browse files
committed
[sanitizer] Disable COMPILER_RT_HAS_TRIVIAL_AUTO_INIT on PowerPC to fix the bot
See issue #84654.
1 parent bf8c7cd commit 15e9478

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,10 @@ append_list_if(MINGW -fms-extensions SANITIZER_COMMON_CFLAGS)
502502
#
503503
# Note that this type of issue was discovered with lsan, but can apply to other
504504
# sanitizers.
505-
append_list_if(COMPILER_RT_HAS_TRIVIAL_AUTO_INIT -ftrivial-auto-var-init=pattern SANITIZER_COMMON_CFLAGS)
505+
# Disable PowerPC because of https://github.com/llvm/llvm-project/issues/84654.
506+
if(NOT "${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc")
507+
append_list_if(COMPILER_RT_HAS_TRIVIAL_AUTO_INIT -ftrivial-auto-var-init=pattern SANITIZER_COMMON_CFLAGS)
508+
endif()
506509

507510
# Set common link flags.
508511
# TODO: We should consider using the same model as libc++, that is use either

0 commit comments

Comments
 (0)