Fix check-interception link error in compiler-rt debug mode

llvm-svn: 374472
This commit is contained in:
Reid Kleckner 2019-10-10 23:30:54 +00:00
parent 6442b56974
commit 9280d6c178
1 changed files with 4 additions and 1 deletions

View File

@ -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)