From 9280d6c178a4df3caed74e599db612ea091b296d Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 10 Oct 2019 23:30:54 +0000 Subject: [PATCH] Fix check-interception link error in compiler-rt debug mode llvm-svn: 374472 --- compiler-rt/lib/interception/tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/interception/tests/CMakeLists.txt b/compiler-rt/lib/interception/tests/CMakeLists.txt index b241811..bad6732 100644 --- a/compiler-rt/lib/interception/tests/CMakeLists.txt +++ b/compiler-rt/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) -- 2.7.4