diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-01-28 09:07:30 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-01-28 09:07:30 +0000 |
commit | 7c362fb1b6e93e25b1f9ac9f4b2e10e5c030c107 (patch) | |
tree | 999b2ec54dd2911e478fd8b621f913669b11fcaa /compiler-rt | |
parent | 61761f182bf2a7a1dd69b931f4ed7ba85a02f280 (diff) | |
download | bcm5719-llvm-7c362fb1b6e93e25b1f9ac9f4b2e10e5c030c107.tar.gz bcm5719-llvm-7c362fb1b6e93e25b1f9ac9f4b2e10e5c030c107.zip |
CMake: simplify build rules for compiler-rt unit tests. This fixes warnings in Ninja build tree.
llvm-svn: 173677
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/cmake/Modules/AddCompilerRT.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index d084bf04888..742d81f9ab0 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -114,12 +114,10 @@ set(COMPILER_RT_GTEST_INCLUDE_CFLAGS macro(add_compiler_rt_test test_suite test_name) parse_arguments(TEST "OBJECTS;DEPS;LINK_FLAGS" "" ${ARGN}) set(output_bin "${CMAKE_CURRENT_BINARY_DIR}/${test_name}") - add_custom_command( - OUTPUT ${output_bin} + add_custom_target(${test_name} COMMAND clang ${TEST_OBJECTS} -o "${output_bin}" ${TEST_LINK_FLAGS} DEPENDS clang ${TEST_DEPS}) - add_custom_target(${test_name} DEPENDS ${output_bin}) # Make the test suite depend on the binary. add_dependencies(${test_suite} ${test_name}) endmacro() |