summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2017-04-13 11:58:51 +0200
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2017-04-13 11:58:51 +0200
commite59fcec44e241bea744c88d2d1f8cbeed0f01393 (patch)
tree627f713091aa1188756dec3a129340f6020f3819 /build.sh
parent8ef117b17a1dfe2c0ed7697310e892488742f5e2 (diff)
downloadnss-hg-e59fcec44e241bea744c88d2d1f8cbeed0f01393.tar.gz
Bug 1356191 - better platform detection for gyp, r=mt
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 010828985..0fc9a4320 100755
--- a/build.sh
+++ b/build.sh
@@ -49,6 +49,7 @@ fuzz=0
fuzz_tls=0
fuzz_oss=0
no_local_nspr=0
+armhf=0
gyp_params=(--depth="$cwd" --generator-output=".")
nspr_params=()
@@ -58,6 +59,8 @@ ninja_params=()
arch=$(python "$cwd"/coreconf/detect_host_arch.py)
if [ "$arch" = "x64" -o "$arch" = "aarch64" ]; then
build_64=1
+elif [ "$arch" = "arm" ]; then
+ armhf=1
fi
# parse command line arguments
@@ -101,7 +104,7 @@ else
fi
if [ "$build_64" = 1 ]; then
nspr_params+=(--enable-64bit)
-else
+elif [ ! "$armhf" = 1 ]; then
gyp_params+=(-Dtarget_arch=ia32)
fi
if [ "$fuzz" = 1 ]; then