Usage: build.sh [-h] [-c|-cc] [-v] [-j ] [--gyp|-g] [--opt|-o] [-t |--target=] [--clang|--gcc|--msvc] [--scan-build[=dir]] [--disable-tests] [--pprof] [--asan] [--msan] [--ubsan[=bool,shift,...] [--fuzz[=tls|oss]] [--sancov[=edge|bb|func|...]] [--emit-llvm] [--no-zdefs] [--test] [--ct-verif] [--nspr|--with-nspr=:|--system-nspr] [--system-sqlite] [--enable-fips] [--enable-libpkix] [--mozpkix-only] [-D] This script builds NSS with gyp and ninja. NSS build tool options: -h display this help and exit -c clean before build -cc clean without building -v verbose build -j run at most concurrent jobs --gyp|-g force a rerun of gyp --opt|-o do an opt build --target|-t specify target architecture (e.g., x86, x64, aarch64) --clang build with clang and clang++ --gcc build with gcc and g++ --msvc build with MSVC --scan-build run the build with scan-build --scan-build= sets the output path for scan-build --disable-tests don't build tests and corresponding cmdline utils --pprof build with gperftool support --asan enable address sanitizer --msan enable memory sanitizer --ubsan enable undefined behavior sanitizer --ubsan=bool,shift,... sets specific UB sanitizers --fuzz build fuzzing targets (this always enables test builds) --fuzz=tls to enable TLS fuzzing mode --fuzz=oss to build for OSS-Fuzz --sancov do sanitize coverage builds --sancov=func sets coverage to function level for example --emit-llvm emit LLVM bitcode while building (requires the gold linker, use clang-3.8 for SAW) --no-zdefs don't set -Wl,-z,defs --test ignore map files and export everything we have --static create static libraries and use static linking --ct-verif build with valgrind for ct-verif --nspr force a rebuild of NSPR --with-nspr use the NSPR build at the given locations --with-nspr=: sets include and lib paths --system-nspr attempt to use system nspr shorthand for --with-nspr=/usr/include/nspr: --system-sqlite use system sqlite --enable-fips enable FIPS checks --enable-libpkix make libpkix part of the build --mozpkix-only build only static mozpkix and mozpkix-test libraries support for this build option is limited -D pass an option directly to gyp