Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: testing/libfuzzer/BUILD.gn

Issue 1818273002: [libfuzzer] supporting libfuzzer on mac with asan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrapping copy in if (is_mac) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/libfuzzer/BUILD.gn
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn
index 2063f9206e2ce49ca5a2688030f0a8191fbcb543..1ac14ecce3083cde5c0e56503938449d11590d05 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.

Powered by Google App Engine
This is Rietveld 408576698