diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-05-01 22:25:16 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-05-01 22:25:16 +0000 |
commit | 50721b27c42399d828e1b11cb57010e2139525eb (patch) | |
tree | 85d409d5fb4fdcfafdf51d24b057a6ae76dc1d5b /compiler-rt/lib/xray/tests | |
parent | 2097b1f84d47419f18a4a737e4a00cc26313b868 (diff) | |
download | bcm5719-llvm-50721b27c42399d828e1b11cb57010e2139525eb.tar.gz bcm5719-llvm-50721b27c42399d828e1b11cb57010e2139525eb.zip |
[compiler-rt][tests] Propagate COMPILER_RT_UNITTEST_LINK_FLAGS
`COMPILER_RT_UNITTEST_LINK_FLAGS` is dropped in many places, unlike
`COMPILER_RT_UNITTEST_CFLAGS`. This patch attempts to remove that
inconsistency.
Previously reviewed as part of D58951.
Reviewers: sfertile, peter.smith, pzheng, phosek, Hahnfeld, nemanjai, jasonliu
Reviewed By: sfertile
Subscribers: jsji, kubamracek, dberris, mgorny, delcypher, jdoerfert, #sanitizers, llvm-commits
Tags: #llvm, #sanitizers
Differential Revision: https://reviews.llvm.org/D60143
llvm-svn: 359733
Diffstat (limited to 'compiler-rt/lib/xray/tests')
-rw-r--r-- | compiler-rt/lib/xray/tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/xray/tests/CMakeLists.txt b/compiler-rt/lib/xray/tests/CMakeLists.txt index 609120c83d0..a1fbccaeb6d 100644 --- a/compiler-rt/lib/xray/tests/CMakeLists.txt +++ b/compiler-rt/lib/xray/tests/CMakeLists.txt @@ -47,7 +47,10 @@ function(get_xray_lib_for_arch arch lib) endfunction() set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH}) -set(XRAY_UNITTEST_LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT}) +set(XRAY_UNITTEST_LINK_FLAGS + ${COMPILER_RT_UNITTEST_LINK_FLAGS} + ${CMAKE_THREAD_LIBS_INIT} + ) if (NOT APPLE) # Needed by LLVMSupport. |