Skip to content

Latest commit

 

History

History
55 lines (52 loc) · 2.86 KB

help.txt

File metadata and controls

55 lines (52 loc) · 2.86 KB
 
Oct 12, 2018
Oct 12, 2018
1
2
3
4
5
6
7
8
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]
Feb 25, 2019
Feb 25, 2019
9
[--mozpkix-only] [-D<gyp-option>]
10
11
12
13
14
15
16
This script builds NSS with gyp and ninja.
NSS build tool options:
-h display this help and exit
-c clean before build
Nov 8, 2017
Nov 8, 2017
17
-cc clean without building
18
19
20
21
-v verbose build
-j <n> run at most <n> concurrent jobs
--gyp|-g force a rerun of gyp
--opt|-o do an opt build
Oct 12, 2018
Oct 12, 2018
22
--target|-t specify target architecture (e.g., x86, x64, aarch64)
Aug 10, 2017
Aug 10, 2017
23
24
--clang build with clang and clang++
--gcc build with gcc and g++
Oct 12, 2018
Oct 12, 2018
25
26
27
28
29
30
31
32
33
--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
34
35
36
37
38
--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
Jan 16, 2018
Jan 16, 2018
39
40
--emit-llvm emit LLVM bitcode while building
(requires the gold linker, use clang-3.8 for SAW)
Sep 23, 2018
Sep 23, 2018
41
--no-zdefs don't set -Wl,-z,defs
Oct 12, 2018
Oct 12, 2018
42
--test ignore map files and export everything we have
Apr 29, 2019
Apr 29, 2019
43
--static create static libraries and use static linking
Oct 12, 2018
Oct 12, 2018
44
45
46
47
48
49
50
51
52
53
54
--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
Feb 25, 2019
Feb 25, 2019
55
-D<gyp-option> pass an option directly to gyp