summaryrefslogtreecommitdiff
path: root/coreconf
diff options
context:
space:
mode:
authorTim Taubert <ttaubert@mozilla.com>2017-01-25 15:40:32 +0100
committerTim Taubert <ttaubert@mozilla.com>2017-01-25 15:40:32 +0100
commit584c481caa0d769271ca3d80785b9581d5bce917 (patch)
tree9d478761cee82730a036fc1a7a3aca60ad316ee5 /coreconf
parente3a880cf2326f213c814ed647f4038c594cd2302 (diff)
downloadnss-hg-584c481caa0d769271ca3d80785b9581d5bce917.tar.gz
Bug 1333361 - Fix static fuzzing builds r=franziskus
Differential Revision: https://nss-review.dev.mozaws.net/D170
Diffstat (limited to 'coreconf')
-rw-r--r--coreconf/config.gypi7
-rw-r--r--coreconf/fuzz.sh2
2 files changed, 7 insertions, 2 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi
index 63722d5b8..bd7f1da3c 100644
--- a/coreconf/config.gypi
+++ b/coreconf/config.gypi
@@ -152,7 +152,7 @@
'product_dir': '<(nss_dist_obj_dir)/lib'
}],
# mapfile handling
- [ 'test_build==0 and mapfile!=""', {
+ [ 'mapfile!=""', {
# Work around a gyp bug. Fixed upstream but not in Ubuntu packages:
# https://chromium.googlesource.com/external/gyp/+/b85ad3e578da830377dbc1843aa4fbc5af17a192%5E%21/
'sources': [
@@ -360,6 +360,11 @@
'cflags': [
'-Wno-unused-function',
],
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [
+ '-Wno-unused-function',
+ ],
+ },
}],
[ 'sanitizer_flags!=0', {
'cflags': ['<@(sanitizer_flags)'],
diff --git a/coreconf/fuzz.sh b/coreconf/fuzz.sh
index 73b0d9f46..2eefc114c 100644
--- a/coreconf/fuzz.sh
+++ b/coreconf/fuzz.sh
@@ -15,7 +15,7 @@ if [ -z "$CC" ]; then
export CXX=clang++
fi
-gyp_params+=(-Dtest_build=1 -Dfuzz=1)
+gyp_params+=(-Dtest_build=1 -Dfuzz=1 -Dsign_libs=0)
# Add debug symbols even for opt builds.
nspr_params+=(--enable-debug-symbols)