summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-06-21 18:00:51 +0000
committerKuba Mracek <mracek@apple.com>2018-06-21 18:00:51 +0000
commitf88870273cda8ba0c9b325535a035b428619e603 (patch)
treefa9e231aa0eab222da38ed77d80bdff1727f2b99 /lib
parentf3fff397c8242c0ec9235e61bd778d1616aa59ac (diff)
[tsan] Use DARWIN_osx_LINK_FLAGS when building unit tests to match ASan behavior.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/tsan/tests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tsan/tests/CMakeLists.txt b/lib/tsan/tests/CMakeLists.txt
index a3d8e9692..352319f10 100644
--- a/lib/tsan/tests/CMakeLists.txt
+++ b/lib/tsan/tests/CMakeLists.txt
@@ -34,6 +34,7 @@ if(APPLE)
list(APPEND TSAN_UNITTEST_CFLAGS ${DARWIN_osx_CFLAGS})
set(LINK_FLAGS "-lc++")
+ list(APPEND LINK_FLAGS ${DARWIN_osx_LINK_FLAGS})
add_weak_symbols("ubsan" LINK_FLAGS)
add_weak_symbols("sanitizer_common" LINK_FLAGS)
else()