[ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows
authorTimur Iskhodzhanov <timurrrr@google.com>
Thu, 22 Jan 2015 14:54:22 +0000 (14:54 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Thu, 22 Jan 2015 14:54:22 +0000 (14:54 +0000)
llvm-svn: 226831

compiler-rt/cmake/Modules/AddCompilerRT.cmake

index 1904a4b..a7782a1 100644 (file)
@@ -168,6 +168,9 @@ macro(add_compiler_rt_test test_suite test_name)
   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)