mac arm m系列 v8编译
https://mp.weixin.qq.com/s/B8iJVOpyIzZd8XgLYRr7Ow
---
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:`pwd`/depot_tools
gclient
fetch v8
cd v8
vim .gclient
文件末尾加上
target_os = ['mac']
gclient sync
mkdir -p out/release
cat > out/release/args.gn << 'EOF'
target_cpu = "arm64"
is_debug = false
v8_monolithic = true
v8_use_external_startup_data = false # 必须为 false
v8_enable_i18n_support = true
EOF
gn gen out/release
编译
ninja -C out/release v8_monolith -j$(sysctl -n hw.ncpu)

浙公网安备 33010602011771号