mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
Use python3 in build if python2 is not found
This commit is contained in:
parent
abc2387bd4
commit
b63fbe9d8a
@ -99,9 +99,9 @@ fi
|
||||
rm -rf "./$out"
|
||||
mkdir -p out
|
||||
|
||||
python2=$(which python2 2>/dev/null || which python 2>/dev/null)
|
||||
python=$(which python2 2>/dev/null || which python 2>/dev/null || which python3 2>/dev/null)
|
||||
export DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
||||
|
||||
./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$python2
|
||||
./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$python
|
||||
|
||||
ninja -C "$out" naive
|
||||
|
@ -26,8 +26,8 @@ if [ "$ARCH" = Linux ]; then
|
||||
fi
|
||||
|
||||
# Clang
|
||||
python2=$(which python2 2>/dev/null || which python 2>/dev/null)
|
||||
CLANG_REVISION=$($python2 tools/clang/scripts/update.py --print-revision)
|
||||
python=$(which python2 2>/dev/null || which python 2>/dev/null || which python3 2>/dev/null)
|
||||
CLANG_REVISION=$($python tools/clang/scripts/update.py --print-revision)
|
||||
CLANG_PATH="clang-$CLANG_REVISION.tgz"
|
||||
case "$ARCH" in
|
||||
Linux) clang_url="https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/$CLANG_PATH";;
|
||||
|
Loading…
Reference in New Issue
Block a user