summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2015-01-22 14:54:22 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2015-01-22 14:54:22 +0000
commit23cfd6ecffc514827fb6f6a44e8cf3c02c186e7b (patch)
tree43619dce8279d0ae51728b95d048524c009fca66
parent5a67ed1038de11a26851c01e0ae22a67e8ac028c (diff)
downloadbcm5719-llvm-23cfd6ecffc514827fb6f6a44e8cf3c02c186e7b.tar.gz
bcm5719-llvm-23cfd6ecffc514827fb6f6a44e8cf3c02c186e7b.zip
[ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows
llvm-svn: 226831
-rw-r--r--compiler-rt/cmake/Modules/AddCompilerRT.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index 1904a4be9a1..a7782a19484 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -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)
OpenPOWER on IntegriCloud