summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2016-11-22 09:41:18 +0100
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2016-11-22 09:41:18 +0100
commitc0a6c866f50b37fb8c9043c082b5aa898cb9e630 (patch)
tree42ca840b196bb357ad8a95c2b965cc09a34181c5 /build.sh
parent57578654f451c68f09d27196828807457eb828e5 (diff)
downloadnss-hg-c0a6c866f50b37fb8c9043c082b5aa898cb9e630.tar.gz
Bug 1319361 - add msan builds, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D89
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 730aba15b..5af3d3402 100755
--- a/build.sh
+++ b/build.sh
@@ -14,7 +14,7 @@ cat << EOF
Usage: ${0##*/} [-hcgv] [-j <n>] [--test] [--fuzz] [--scan-build[=output]]
[-m32] [--opt|-o] [--asan] [--ubsan] [--sancov[=edge|bb|func]]
- [--pprof]
+ [--pprof] [--msan]
This script builds NSS with gyp and ninja.
@@ -36,6 +36,7 @@ NSS build tool options:
--opt|-o do an opt build
--asan do an asan build
--ubsan do an ubsan build
+ --msan do an msan build
--sancov do sanitize coverage builds
--sancov=func sets coverage to function level for example
--pprof build with gperftool support
@@ -104,6 +105,7 @@ while [ $# -gt 0 ]; do
--sancov) gyp_params+=(-Duse_sancov=edge); nspr_sanitizer sancov edge ;;
--sancov=?*) gyp_params+=(-Duse_sancov="${1#*=}"); nspr_sanitizer sancov "${1#*=}" ;;
--pprof) gyp_params+=(-Duse_pprof=1) ;;
+ --msan) gyp_params+=(-Duse_msan=1); nspr_sanitizer msan ;;
*) show_help; exit ;;
esac
shift