From 54dffec5d2d01c318ba393201c32e6149ff40b29 Mon Sep 17 00:00:00 2001 From: Franziskus Kiefer Date: Fri, 18 Nov 2016 17:11:06 +0100 Subject: Bug 1319011 - add gperftool support, r=ttaubert Differential Revision: https://nss-review.dev.mozaws.net/D81 --- build.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index ba96b05f8..730aba15b 100755 --- a/build.sh +++ b/build.sh @@ -14,6 +14,7 @@ cat << EOF Usage: ${0##*/} [-hcgv] [-j ] [--test] [--fuzz] [--scan-build[=output]] [-m32] [--opt|-o] [--asan] [--ubsan] [--sancov[=edge|bb|func]] + [--pprof] This script builds NSS with gyp and ninja. @@ -37,6 +38,7 @@ NSS build tool options: --ubsan do an ubsan build --sancov do sanitize coverage builds --sancov=func sets coverage to function level for example + --pprof build with gperftool support EOF } @@ -101,6 +103,7 @@ while [ $# -gt 0 ]; do --ubsan) gyp_params+=(-Duse_ubsan=1); nspr_sanitizer ubsan ;; --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) ;; *) show_help; exit ;; esac shift -- cgit v1.2.1