mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-08 19:52:06 +00:00
support build under arm64 mac
This commit is contained in:
parent
cf5478513d
commit
fc9d2c1603
3 changed files with 15 additions and 6 deletions
BIN
src/buildtools/linux64/clang-format
Executable file
BIN
src/buildtools/linux64/clang-format
Executable file
Binary file not shown.
|
@ -40,7 +40,7 @@ fi
|
|||
if [ ! -f gn/out/gn ]; then
|
||||
gn_version=$(grep "'gn_version':" DEPS | cut -d"'" -f4)
|
||||
mkdir -p gn/out
|
||||
curl -L "https://chrome-infra-packages.appspot.com/dl/gn/gn/$WITH_GN-amd64/+/$gn_version" -o gn.zip
|
||||
curl -L "https://chrome-infra-packages.appspot.com/dl/gn/gn/$WITH_GN/+/$gn_version" -o gn.zip
|
||||
unzip gn.zip -d gn/out
|
||||
rm gn.zip
|
||||
fi
|
||||
|
|
|
@ -19,7 +19,7 @@ case "$ARCH" in
|
|||
WITH_CLANG=Linux_x64
|
||||
# See build/config/compiler/pgo/BUILD.gn
|
||||
WITH_PGO=linux
|
||||
WITH_GN=linux
|
||||
WITH_GN=linux-amd64
|
||||
if [ "$OPENWRT_FLAGS" ]; then
|
||||
eval "$OPENWRT_FLAGS"
|
||||
WITH_SYSROOT="out/sysroot-build/openwrt/$release/$arch"
|
||||
|
@ -63,7 +63,7 @@ case "$ARCH" in
|
|||
fi
|
||||
WITH_CLANG=Win
|
||||
USE_SCCACHE=y
|
||||
WITH_GN=windows
|
||||
WITH_GN=windows-amd64
|
||||
case "$target_cpu" in
|
||||
arm64) WITH_PGO=win-arm64;;
|
||||
x64) WITH_PGO=win64;;
|
||||
|
@ -77,11 +77,20 @@ case "$ARCH" in
|
|||
export CCACHE_CPP2=yes
|
||||
CCACHE=ccache
|
||||
fi
|
||||
WITH_CLANG=Mac
|
||||
WITH_GN=mac
|
||||
MACHINE=$(uname -m)
|
||||
if [ "$MACHINE" = "arm64" ]; then
|
||||
WITH_CLANG=Mac_arm64
|
||||
WITH_GN=mac-arm64
|
||||
WITH_PGO_MACHINE=mac-arm
|
||||
else
|
||||
WITH_CLANG=Mac
|
||||
WITH_GN=mac-amd64
|
||||
WITH_PGO_MACHINE=mac
|
||||
fi
|
||||
case "$target_cpu" in
|
||||
arm64) WITH_PGO=mac-arm;;
|
||||
*) WITH_PGO=mac;;
|
||||
x64) WITH_PGO=mac;;
|
||||
*) WITH_PGO="$WITH_PGO_MACHINE";;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue