diff --git a/src/build.sh b/src/build.sh index 8d6bea83f2..1e01b29827 100755 --- a/src/build.sh +++ b/src/build.sh @@ -115,6 +115,6 @@ mkdir -p out export DEPOT_TOOLS_WIN_TOOLCHAIN=0 -./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$PYTHON +./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" ninja -C "$out" naive diff --git a/src/get-sysroot.sh b/src/get-sysroot.sh index ae9a98e8b2..b4822c7fc4 100644 --- a/src/get-sysroot.sh +++ b/src/get-sysroot.sh @@ -24,7 +24,11 @@ if [ ! "$target_cpu" ]; then target_cpu="$host_cpu" fi -PYTHON=$(which python3 2>/dev/null || which python 2>/dev/null) +if which python3 2>/dev/null; then + PYTHON=python3 +else + PYTHON=python +fi # sysroot case "$target_os" in