summaryrefslogtreecommitdiffstats
path: root/compiler-rt/cmake/Modules/AddCompilerRT.cmake
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-01-28 07:16:22 +0000
committerAlexey Samsonov <samsonov@google.com>2013-01-28 07:16:22 +0000
commit5311754b62147663bbbf6163935c7729433d8a77 (patch)
tree04140c096f834e9e0c1b81816e9958bc41c22704 /compiler-rt/cmake/Modules/AddCompilerRT.cmake
parent8fb09f0abb6b70b5a093929031c6ddcb5a4b95fa (diff)
downloadbcm5719-llvm-5311754b62147663bbbf6163935c7729433d8a77.tar.gz
bcm5719-llvm-5311754b62147663bbbf6163935c7729433d8a77.zip
[CMake] Fix compiler-rt tests after r173617
llvm-svn: 173668
Diffstat (limited to 'compiler-rt/cmake/Modules/AddCompilerRT.cmake')
-rw-r--r--compiler-rt/cmake/Modules/AddCompilerRT.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index dbc38c55afe..d084bf04888 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -113,9 +113,7 @@ set(COMPILER_RT_GTEST_INCLUDE_CFLAGS
# LINK_FLAGS <link flags>)
macro(add_compiler_rt_test test_suite test_name)
parse_arguments(TEST "OBJECTS;DEPS;LINK_FLAGS" "" ${ARGN})
- set(OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
- file(MAKE_DIRECTORY ${OUTPUT_DIR})
- set(output_bin "${OUTPUT_DIR}/${test_name}")
+ set(output_bin "${CMAKE_CURRENT_BINARY_DIR}/${test_name}")
add_custom_command(
OUTPUT ${output_bin}
COMMAND clang ${TEST_OBJECTS} -o "${output_bin}"
OpenPOWER on IntegriCloud