summaryrefslogtreecommitdiff
path: root/fuzz/fuzz.gyp
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2016-12-01 09:51:38 +0100
committerMartin Thomson <martin.thomson@gmail.com>2016-12-01 09:51:38 +0100
commit6a33e177b75aa5e469d1bf3ac40ba8a435a9a0a2 (patch)
tree56dbf039e40ecabab53ba99604f3461c238af104 /fuzz/fuzz.gyp
parent879ff20194f8513ecf7f126734990ec531788fb2 (diff)
downloadnss-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.gyp35
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'
]
}
],