[compiler-rt] r226831 - [ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows

Timur Iskhodzhanov timurrrr at google.com
Thu Jan 22 06:54:23 PST 2015


Author: timurrrr
Date: Thu Jan 22 08:54:22 2015
New Revision: 226831

URL: http://llvm.org/viewvc/llvm-project?rev=226831&view=rev
Log:
[ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows

Modified:
    compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake

Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=226831&r1=226830&r2=226831&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Thu Jan 22 08:54:22 2015
@@ -168,6 +168,9 @@ macro(add_compiler_rt_test test_suite te
   else()
     set(output_bin "${CMAKE_CURRENT_BINARY_DIR}/${test_name}")
   endif()
+  if(MSVC)
+    set(output_bin "${output_bin}.exe")
+  endif()
   # Use host compiler in a standalone build, and just-built Clang otherwise.
   if(NOT COMPILER_RT_STANDALONE_BUILD)
     list(APPEND TEST_DEPS clang)





More information about the llvm-commits mailing list