2018-10-16 07:00:24 +03:00
|
|
|
Usage: build.sh [-h] [-c|-cc] [-v] [-j <n>] [--gyp|-g] [--opt|-o]
|
|
|
|
[-t <x64|x86|...>|--target=<x64|x86|...>]
|
|
|
|
[--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=<include>:<lib>|--system-nspr]
|
|
|
|
[--system-sqlite] [--enable-fips] [--enable-libpkix]
|
2019-03-01 18:42:49 +03:00
|
|
|
[--mozpkix-only] [-D<gyp-option>]
|
2017-03-08 10:40:46 +03:00
|
|
|
|
|
|
|
This script builds NSS with gyp and ninja.
|
|
|
|
|
|
|
|
NSS build tool options:
|
|
|
|
|
|
|
|
-h display this help and exit
|
|
|
|
-c clean before build
|
2017-11-24 11:00:26 +03:00
|
|
|
-cc clean without building
|
2017-03-08 10:40:46 +03:00
|
|
|
-v verbose build
|
|
|
|
-j <n> run at most <n> concurrent jobs
|
|
|
|
--gyp|-g force a rerun of gyp
|
|
|
|
--opt|-o do an opt build
|
2018-10-16 07:00:24 +03:00
|
|
|
--target|-t specify target architecture (e.g., x86, x64, aarch64)
|
2017-08-10 10:22:53 +03:00
|
|
|
--clang build with clang and clang++
|
|
|
|
--gcc build with gcc and g++
|
2018-10-16 07:00:24 +03:00
|
|
|
--msvc build with MSVC
|
|
|
|
--scan-build run the build with scan-build
|
|
|
|
--scan-build=<dir> 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
|
2017-03-08 10:40:46 +03:00
|
|
|
--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
|
2018-01-23 13:48:27 +03:00
|
|
|
--emit-llvm emit LLVM bitcode while building
|
|
|
|
(requires the gold linker, use clang-3.8 for SAW)
|
2018-10-16 06:42:22 +03:00
|
|
|
--no-zdefs don't set -Wl,-z,defs
|
2018-10-16 07:00:24 +03:00
|
|
|
--test ignore map files and export everything we have
|
2019-05-01 22:07:31 +03:00
|
|
|
--static create static libraries and use static linking
|
2018-10-16 07:00:24 +03:00
|
|
|
--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=<include>:<lib> 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
|
2019-03-01 18:42:49 +03:00
|
|
|
-D<gyp-option> pass an option directly to gyp
|