[compiler-rt] ea82ddd - [TSan] Adjust `TSAN_RTL_CFLAGS` before it gets copied
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 11:22:05 PDT 2022
Author: Julian Lettner
Date: 2022-11-02T11:21:58-07:00
New Revision: ea82ddd070b78bbdb94b3a2a3f0fdeb2738f1845
URL: https://github.com/llvm/llvm-project/commit/ea82ddd070b78bbdb94b3a2a3f0fdeb2738f1845
DIFF: https://github.com/llvm/llvm-project/commit/ea82ddd070b78bbdb94b3a2a3f0fdeb2738f1845.diff
LOG: [TSan] Adjust `TSAN_RTL_CFLAGS` before it gets copied
Add `COMPILER_RT_LIBDISPATCH_CFLAGS` to `TSAN_RTL_CFLAGS` before it gets
duplicated to `TSAN_RTL_DYNAMIC_CFLAGS` so both versions have the
necessary flags.
Reviewed By: wrotki, rsundahl
Differential Revision: https://reviews.llvm.org/D137183
Added:
Modified:
compiler-rt/lib/tsan/rtl/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/CMakeLists.txt b/compiler-rt/lib/tsan/rtl/CMakeLists.txt
index 0a12cb7021f69..84747a552e79f 100644
--- a/compiler-rt/lib/tsan/rtl/CMakeLists.txt
+++ b/compiler-rt/lib/tsan/rtl/CMakeLists.txt
@@ -6,6 +6,8 @@ append_list_if(SANITIZER_LIMIT_FRAME_SIZE -Wframe-larger-than=530
TSAN_RTL_CFLAGS)
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
TSAN_RTL_CFLAGS)
+append_list_if(COMPILER_RT_INTERCEPT_LIBDISPATCH ${COMPILER_RT_LIBDISPATCH_CFLAGS}
+ TSAN_RTL_CFLAGS)
set(TSAN_RTL_DYNAMIC_CFLAGS ${TSAN_RTL_CFLAGS})
list(REMOVE_ITEM TSAN_RTL_DYNAMIC_CFLAGS -fPIE)
@@ -75,7 +77,6 @@ if(COMPILER_RT_INTERCEPT_LIBDISPATCH)
list(APPEND TSAN_SOURCES
tsan_interceptors_libdispatch.cpp
)
- list(APPEND TSAN_RTL_CFLAGS ${COMPILER_RT_LIBDISPATCH_CFLAGS})
endif()
set(TSAN_HEADERS
More information about the llvm-commits
mailing list