From 23cfd6ecffc514827fb6f6a44e8cf3c02c186e7b Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Thu, 22 Jan 2015 14:54:22 +0000 Subject: [PATCH] [ASan/Win] Fix PR20944 -- run ASan gtests as part of check-asan on Windows llvm-svn: 226831 --- compiler-rt/cmake/Modules/AddCompilerRT.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 1904a4b..a7782a19 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) -- 2.7.4