Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1316836 - sancov, ubsan, and asan for gyp, r=ttaubert
--HG-- extra : rebase_source : 0bf34de1e3c81a7b77e9f6f82a66034f97a4a005 extra : histedit_source : 9b56ebcfc88fdee376d0bab0418ad3a6f50596bb%2C172cdeea6e7a640c5cc6ac29f3de2745931b6169
- Loading branch information
1 parent
b8c8e0e
commit cd02c38
Showing
8 changed files
with
187 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# This script builds NSPR for NSS. | ||
# | ||
# This build system is still under development. It does not yet support all | ||
# the features or platforms that the regular NSPR build supports. | ||
|
||
# variables | ||
nspr_opt=() | ||
nspr_cflags= | ||
nspr_cxxflags= | ||
nspr_ldflags= | ||
|
||
nspr_sanitizer() | ||
{ | ||
check_sanitizer | ||
nspr_cflags="$nspr_cflags $(python $cwd/coreconf/sanitizers.py $1 $2)" | ||
nspr_cxxflags="$nspr_cxxflags $(python $cwd/coreconf/sanitizers.py $1 $2)" | ||
nspr_ldflags="$nspr_ldflags $(python $cwd/coreconf/sanitizers.py $1 $2)" | ||
} | ||
|
||
build_nspr() | ||
{ | ||
mkdir -p "$cwd/../nspr/$target" | ||
cd "$cwd/../nspr/$target" | ||
CFLAGS=$nspr_cflags CXXFLAGS=$nspr_cxxflags LDFLAGS=$nspr_ldflags \ | ||
CC=$CC CXX=$CCC ../configure "${nspr_opt[@]}" --prefix="$obj_dir" | ||
make -C "$cwd/../nspr/$target" | ||
make -C "$cwd/../nspr/$target" install | ||
} |
Oops, something went wrong.