aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-06-21 21:19:43 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-06-21 21:19:43 +0000
commitc1d2b5ed9f66211a7b9ab58b225e9e11cd519c5a (patch)
tree6c12d7fc076fb22cfcf87249103f572449dd0f5a
parent4b4712d2c808df6bae9d96f0914ce972b8aacde1 (diff)
[libFuzzer] Filter architectures for testing on Apple platforms.
This is done in all other sanitizers, and was missing on libFuzzer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335290 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/fuzzer/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fuzzer/CMakeLists.txt b/test/fuzzer/CMakeLists.txt
index db102f90b..302744e8e 100644
--- a/test/fuzzer/CMakeLists.txt
+++ b/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()