[compiler-rt] r333242 - [libFuzzer] Fix multi-arch build support for fuzzer tests.
George Karpenkov via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 16:55:53 PDT 2018
Author: george.karpenkov
Date: Thu May 24 16:55:53 2018
New Revision: 333242
URL: http://llvm.org/viewvc/llvm-project?rev=333242&view=rev
Log:
[libFuzzer] Fix multi-arch build support for fuzzer tests.
The bug was not previously exposed as only one architecture is currently
supported for libFuzzer.
Differential Revision: https://reviews.llvm.org/D47287
Modified:
compiler-rt/trunk/test/fuzzer/CMakeLists.txt
Modified: compiler-rt/trunk/test/fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/CMakeLists.txt?rev=333242&r1=333241&r2=333242&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/fuzzer/CMakeLists.txt Thu May 24 16:55:53 2018
@@ -50,14 +50,16 @@ macro(test_fuzzer stdlib)
${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg
)
- add_lit_testsuite(check-fuzzer-${stdlib_name} "Running Fuzzer ${stdlib} tests"
- ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}
+ add_lit_testsuite(check-fuzzer-${stdlib_name}-${arch}
+ "Running Fuzzer ${stdlib} tests"
+ ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/
DEPENDS ${LIBFUZZER_TEST_DEPS})
if(TEST_DEPS)
- add_dependencies(check-fuzzer-${stdlib_name} ${TEST_DEPS})
+ add_dependencies(check-fuzzer-${stdlib_name}-${arch} ${TEST_DEPS})
endif()
- set_target_properties(check-fuzzer-${stdlib_name} PROPERTIES FOLDER "Compiler-RT Tests")
- add_dependencies(check-fuzzer check-fuzzer-${stdlib_name})
+ set_target_properties(check-fuzzer-${stdlib_name}-${arch}
+ PROPERTIES FOLDER "Compiler-RT Tests")
+ add_dependencies(check-fuzzer check-fuzzer-${stdlib_name}-${arch})
endforeach()
endmacro()
More information about the llvm-commits
mailing list