summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMartin Thomson <mt@lowentropy.net>2023-01-12 22:29:39 +0000
committerMartin Thomson <mt@lowentropy.net>2023-01-12 22:29:39 +0000
commit1947c1e2edd1bb7553b8434873b3ae89638c1ec7 (patch)
tree2029b743ba4d547913f271c4a3d74faf9d481966 /build.sh
parentead84df4a812f10f9d4a3e0417f507cdb7f0c2d2 (diff)
downloadnss-hg-1947c1e2edd1bb7553b8434873b3ae89638c1ec7.tar.gz
Bug 1766767 - Move scripts to python3, r=nss-reviewers,jschanck
Differential Revision: https://phabricator.services.mozilla.com/D166506
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index bbb8d04a4..451789591 100755
--- a/build.sh
+++ b/build.sh
@@ -129,8 +129,8 @@ while [ $# -gt 0 ]; do
--disable-keylog) sslkeylogfile=0 ;;
--enable-legacy-db) gyp_params+=(-Ddisable_dbm=0) ;;
--mozilla-central) gyp_params+=(-Dmozilla_central=1) ;;
- --python) python="$2"; shift ;;
- --python=*) python="${1#*=}" ;;
+ --python) python="$2"; shift ;;
+ --python=*) python="${1#*=}" ;;
-D*) gyp_params+=("$1") ;;
*) show_help; exit 2 ;;
esac
@@ -143,7 +143,7 @@ fi
if [ -z "$target_arch" ]; then
# Assume that the target architecture is the same as the host by default.
- host_arch=$(${python:-python} "$cwd/coreconf/detect_host_arch.py")
+ host_arch=$(${python:-python3} "$cwd/coreconf/detect_host_arch.py")
target_arch=$host_arch
fi