diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2016-12-01 09:51:38 +0100 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2016-12-01 09:51:38 +0100 |
commit | 6a33e177b75aa5e469d1bf3ac40ba8a435a9a0a2 (patch) | |
tree | 56dbf039e40ecabab53ba99604f3461c238af104 /fuzz/fuzz.gyp | |
parent | 879ff20194f8513ecf7f126734990ec531788fb2 (diff) | |
download | nss-hg-6a33e177b75aa5e469d1bf3ac40ba8a435a9a0a2.tar.gz |
Bug 1321438 - Copy repositories more comprehensively, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D113
Diffstat (limited to 'fuzz/fuzz.gyp')
-rw-r--r-- | fuzz/fuzz.gyp | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/fuzz/fuzz.gyp b/fuzz/fuzz.gyp index d8b48d38e..64befd0f8 100644 --- a/fuzz/fuzz.gyp +++ b/fuzz/fuzz.gyp @@ -8,6 +8,39 @@ ], 'targets': [ { + 'target_name': 'libFuzzer', + 'type': 'static_library', + 'sources': [ + 'libFuzzer/FuzzerCrossOver.cpp', + 'libFuzzer/FuzzerDriver.cpp', + 'libFuzzer/FuzzerExtFunctionsDlsym.cpp', + 'libFuzzer/FuzzerExtFunctionsWeak.cpp', + 'libFuzzer/FuzzerIO.cpp', + 'libFuzzer/FuzzerLoop.cpp', + 'libFuzzer/FuzzerMutate.cpp', + 'libFuzzer/FuzzerSHA1.cpp', + 'libFuzzer/FuzzerTracePC.cpp', + 'libFuzzer/FuzzerTraceState.cpp', + 'libFuzzer/FuzzerUtil.cpp', + 'libFuzzer/FuzzerUtilDarwin.cpp', + 'libFuzzer/FuzzerUtilLinux.cpp', + ], + 'cflags': [ + '-O2', + ], + 'cflags/': [ + ['exclude', '-fsanitize='], + ['exclude', '-fsanitize-'], + ], + 'xcode_settings': { + 'GCC_OPTIMIZATION_LEVEL': '2', # -O2 + 'OTHER_CFLAGS/': [ + ['exclude', '-fsanitize='], + ['exclude', '-fsanitize-'], + ], + }, + }, + { 'target_name': 'nssfuzz', 'type': 'executable', 'sources': [ @@ -17,7 +50,7 @@ ], 'dependencies': [ '<(DEPTH)/exports.gyp:nss_exports', - '<(DEPTH)/fuzz/libFuzzer/libFuzzer.gyp:libFuzzer' + '<(DEPTH)/fuzz/libFuzzer.gyp:libFuzzer' ] } ], |