From: Mehdi Amini Date: Sat, 4 Nov 2017 00:07:20 +0000 (+0000) Subject: Fix CMake definitions of tsan runtime to make it installed by "install-compiler-rt" X-Git-Tag: llvmorg-6.0.0-rc1~4157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2a539e4c55404db42692d5cb2eabf2820a6a98d;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt index 08974a4..f7a5d70 100644 --- a/compiler-rt/lib/tsan/CMakeLists.txt +++ b/compiler-rt/lib/tsan/CMakeLists.txt @@ -184,13 +184,15 @@ else() $ $ $ - 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} $ - 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