mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-21 21:06:12 +03:00
Update python detection
This commit is contained in:
parent
b639b6b61e
commit
9ce5b852b8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user