summaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorTim Taubert <ttaubert@mozilla.com>2017-01-09 12:14:51 -0500
committerTim Taubert <ttaubert@mozilla.com>2017-01-09 12:14:51 -0500
commitd8d18be6b10128c49d13e55f3f0fb860aabcbb13 (patch)
tree774231aff7f9746fb23031013dc2c03412a84e8a /fuzz
parentb53755a742f43fb62ffde5c17d378ee0ec74a345 (diff)
downloadnss-hg-d8d18be6b10128c49d13e55f3f0fb860aabcbb13.tar.gz
Bug 1328573 - Allow specifying debug/release optimization levels per target r=franziskus
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/fuzz.gyp45
1 files changed, 14 insertions, 31 deletions
diff --git a/fuzz/fuzz.gyp b/fuzz/fuzz.gyp
index 32e76cbea..ec76c4431 100644
--- a/fuzz/fuzz.gyp
+++ b/fuzz/fuzz.gyp
@@ -25,21 +25,11 @@
'libFuzzer/FuzzerUtilDarwin.cpp',
'libFuzzer/FuzzerUtilLinux.cpp',
],
- 'cflags': [
- '-O2',
- ],
- 'cflags!': [
- '-O1',
- ],
- 'cflags/': [
- ['exclude', '-fsanitize'],
- ],
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '2', # -O2
- 'OTHER_CFLAGS/': [
- ['exclude', '-fsanitize'],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'libFuzzer',
],
- },
+ }
},
{
'target_name': 'nssfuzz',
@@ -54,27 +44,20 @@
'<(DEPTH)/exports.gyp:nss_exports',
'libFuzzer',
],
- 'cflags': [
- '-O2',
- ],
- 'cflags!': [
- '-O1',
- ],
- 'cflags/': [
- ['exclude', '-fsanitize-coverage'],
- ],
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '2', # -O2
- 'OTHER_CFLAGS/': [
- ['exclude', '-fsanitize-coverage'],
- ],
- },
}
],
'target_defaults': {
- 'include_dirs': [
- 'libFuzzer',
+ 'variables': {
+ 'debug_optimization_level': '2',
+ },
+ 'cflags/': [
+ ['exclude', '-fsanitize-coverage'],
],
+ 'xcode_settings': {
+ 'OTHER_CFLAGS/': [
+ ['exclude', '-fsanitize-coverage'],
+ ],
+ },
},
'variables': {
'module': 'nss',