[compiler-rt] r374472 - Fix check-interception link error in compiler-rt debug mode

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 16:30:54 PDT 2019


Author: rnk
Date: Thu Oct 10 16:30:54 2019
New Revision: 374472

URL: http://llvm.org/viewvc/llvm-project?rev=374472&view=rev
Log:
Fix check-interception link error in compiler-rt debug mode

Modified:
    compiler-rt/trunk/lib/interception/tests/CMakeLists.txt

Modified: compiler-rt/trunk/lib/interception/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/tests/CMakeLists.txt?rev=374472&r1=374471&r2=374472&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/interception/tests/CMakeLists.txt Thu Oct 10 16:30:54 2019
@@ -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)
 




More information about the llvm-commits mailing list