summaryrefslogtreecommitdiffstats
path: root/testing/libfuzzer/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libfuzzer/BUILD.gn')
-rw-r--r--testing/libfuzzer/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn
index 2063f92..1ac14ecc 100644
--- a/testing/libfuzzer/BUILD.gn
+++ b/testing/libfuzzer/BUILD.gn
@@ -37,6 +37,16 @@ static_library("libfuzzer_main") {
}
}
+# A config used by all fuzzer_tests.
+config("fuzzer_test_config") {
+ if (use_libfuzzer && is_mac) {
+ ldflags = [
+ "-Wl,-U,_LLVMFuzzerCustomMutator",
+ "-Wl,-U,_LLVMFuzzerInitialize",
+ ]
+ }
+}
+
# Noop config used to tag fuzzer tests excluded from clusterfuzz.
# Libfuzzer build bot uses this to filter out targets while
# building an archive for clusterfuzz.