Skip to content

Commit

Permalink
bug 1315231 - Fix build.sh host architecture detection on Windows, ex…
Browse files Browse the repository at this point in the history
…plicitly pass nspr_{include,lib}_dir to gyp. r=ttaubert

--HG--
extra : rebase_source : 7ac6ac1c618dcc79783d582151c18ca7c2cef285
  • Loading branch information
luser committed Nov 9, 2016
1 parent cebbcd2 commit d2860e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Expand Up @@ -54,6 +54,9 @@ params=$(echo "$* $CC $CCC" | tr " " "\n")
cwd=$(cd $(dirname $0); pwd -P)
dist_dir="$cwd/../dist"

cwd=$(cd $(dirname $0); pwd -P)
dist_dir="$cwd/../dist"

# try to guess sensible defaults
arch=$(python "$cwd/coreconf/detect_host_arch.py")
if [ "$arch" = "x64" -o "$arch" = "aarch64" ]; then
Expand Down Expand Up @@ -161,8 +164,10 @@ if [ "$rebuild_gyp" = 1 -o ! -d "$target_dir" ]; then
build_nspr

# Run gyp.
set -v -x
"${scanbuild[@]}" gyp -f ninja "${gyp_params[@]}" --depth="$cwd" \
--generator-output="." "$cwd/nss.gyp"
set +v +x

# Store used parameters for next run.
echo "$params" > "$cwd/out/config"
Expand Down

0 comments on commit d2860e5

Please sign in to comment.