diff options
| author | Kuba Mracek <mracek@apple.com> | 2018-06-21 18:00:51 +0000 |
|---|---|---|
| committer | Kuba Mracek <mracek@apple.com> | 2018-06-21 18:00:51 +0000 |
| commit | 14c786a9604baa2f410c945652ba7acf97796cbc (patch) | |
| tree | 7560ff274c40b44816acccb41fec5373617e2925 | |
| parent | d041f218100e482839a232ae9e23b073bf19b812 (diff) | |
| download | bcm5719-llvm-14c786a9604baa2f410c945652ba7acf97796cbc.tar.gz bcm5719-llvm-14c786a9604baa2f410c945652ba7acf97796cbc.zip | |
[tsan] Use DARWIN_osx_LINK_FLAGS when building unit tests to match ASan behavior.
llvm-svn: 335265
| -rw-r--r-- | compiler-rt/lib/tsan/tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/tests/CMakeLists.txt b/compiler-rt/lib/tsan/tests/CMakeLists.txt index a3d8e96925e..352319f1010 100644 --- a/compiler-rt/lib/tsan/tests/CMakeLists.txt +++ b/compiler-rt/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() |

