summaryrefslogtreecommitdiff
path: root/cmake
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
commit00b915ccb3312c22634421fac7948aca1c6af1b5 (patch)
tree9f5a0f76e97fd4f483e7b0fb90614ce18b789d9a /cmake
parent796ee653ccce12360cd7268d7634fb8bffeb2fcd (diff)
[ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/AddCompilerRT.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake
index 1904a4be9..a7782a194 100644
--- a/cmake/Modules/AddCompilerRT.cmake
+++ b/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)