[compiler-rt] [compiler-rt] [Darwin] libFuzzer tests should use darwin_filter_host_archs (PR #160578)
Andrew Haberlandt via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 5 22:52:11 PDT 2025
================
@@ -63,10 +63,16 @@ if ("-fvisibility=hidden" IN_LIST LIBFUZZER_CFLAGS)
list(APPEND LIBFUZZER_UNITTEST_CFLAGS "-fvisibility=hidden")
endif()
-if(COMPILER_RT_DEFAULT_TARGET_ARCH IN_LIST FUZZER_SUPPORTED_ARCH)
- # libFuzzer unit tests are only run on the host machine.
- set(arch ${COMPILER_RT_DEFAULT_TARGET_ARCH})
+if(COMPILER_RT_CAN_EXECUTE_TESTS)
+ set(FUZZER_TEST_ARCH ${FUZZER_SUPPORTED_ARCH})
----------------
ndrewh wrote:
It is now only defined once in each of the branches. (darwin_filter_host_archs does not need its output to already be defined, so the set is not necessary in the `if(APPLE)` branch anyway).
https://github.com/llvm/llvm-project/pull/160578
More information about the llvm-commits
mailing list