From b085ca50950b9c76538cc7472296c84ef6cda60a Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Thu, 21 Jun 2018 21:19:43 +0000 Subject: [PATCH] [libFuzzer] Filter architectures for testing on Apple platforms. This is done in all other sanitizers, and was missing on libFuzzer. llvm-svn: 335290 --- compiler-rt/test/fuzzer/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler-rt/test/fuzzer/CMakeLists.txt b/compiler-rt/test/fuzzer/CMakeLists.txt index db102f90bfb3..302744e8e7fb 100644 --- a/compiler-rt/test/fuzzer/CMakeLists.txt +++ b/compiler-rt/test/fuzzer/CMakeLists.txt @@ -3,6 +3,10 @@ if (NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND LIBFUZZER_TEST_DEPS fuzzer asan ubsan) endif() +if (APPLE) + darwin_filter_host_archs(FUZZER_SUPPORTED_ARCH FUZZER_SUPPORTED_ARCH) +endif() + if(COMPILER_RT_INCLUDE_TESTS) list(APPEND LIBFUZZER_TEST_DEPS FuzzerUnitTests) endif()