diff options
author | Reid Kleckner <rnk@google.com> | 2019-10-10 23:30:54 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-10-10 23:30:54 +0000 |
commit | af03abc1602f31751fa66bb44e4da4d4beb7ca07 (patch) | |
tree | 7df9cb3161474c265d06fdefa5c924ba156b5ca0 | |
parent | d12d7d30820ac62aaebbbf0d7eda66df1ea899c5 (diff) | |
download | compiler-rt-af03abc1602f31751fa66bb44e4da4d4beb7ca07.tar.gz |
Fix check-interception link error in compiler-rt debug mode
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374472 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/interception/tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/interception/tests/CMakeLists.txt b/lib/interception/tests/CMakeLists.txt index b2418110f..bad67325c 100644 --- a/lib/interception/tests/CMakeLists.txt +++ b/lib/interception/tests/CMakeLists.txt @@ -32,7 +32,10 @@ else() endif() if(MSVC) list(APPEND INTERCEPTION_TEST_CFLAGS_COMMON -gcodeview) - list(APPEND INTERCEPTION_TEST_LINK_FLAGS_COMMON -Wl,-largeaddressaware) + list(APPEND INTERCEPTION_TEST_LINK_FLAGS_COMMON + -Wl,-largeaddressaware + -Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames + ) endif() list(APPEND INTERCEPTION_TEST_LINK_FLAGS_COMMON -g) |