summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2017-11-04 00:07:20 +0000
committerMehdi Amini <joker.eph@gmail.com>2017-11-04 00:07:20 +0000
commita2a539e4c55404db42692d5cb2eabf2820a6a98d (patch)
treed21fd8016e6a4a0f15514f86b8bbc5bf17a4fffc
parent4a0ebbfe975ce6914b6d1bdedcf2681a9c590521 (diff)
downloadbcm5719-llvm-a2a539e4c55404db42692d5cb2eabf2820a6a98d.tar.gz
bcm5719-llvm-a2a539e4c55404db42692d5cb2eabf2820a6a98d.zip
Fix CMake definitions of tsan runtime to make it installed by "install-compiler-rt"
Summary: The PARENT_TARGET was correctly set under APPLE but not under linux. Reviewers: kubamracek, samsonov Subscribers: dberris, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D39621 llvm-svn: 317391
-rw-r--r--compiler-rt/lib/tsan/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt
index 08974a467f4..f7a5d70a3d8 100644
--- a/compiler-rt/lib/tsan/CMakeLists.txt
+++ b/compiler-rt/lib/tsan/CMakeLists.txt
@@ -184,13 +184,15 @@ else()
$<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
$<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}>
$<TARGET_OBJECTS:RTUbsan.${arch}>
- CFLAGS ${TSAN_RTL_CFLAGS})
+ CFLAGS ${TSAN_RTL_CFLAGS}
+ PARENT_TARGET tsan)
add_compiler_rt_runtime(clang_rt.tsan_cxx
STATIC
ARCHS ${arch}
SOURCES ${TSAN_CXX_SOURCES}
$<TARGET_OBJECTS:RTUbsan_cxx.${arch}>
- CFLAGS ${TSAN_RTL_CFLAGS})
+ CFLAGS ${TSAN_RTL_CFLAGS}
+ PARENT_TARGET tsan)
list(APPEND TSAN_RUNTIME_LIBRARIES clang_rt.tsan-${arch}
clang_rt.tsan_cxx-${arch})
add_sanitizer_rt_symbols(clang_rt.tsan
OpenPOWER on IntegriCloud