From e31ff0a65c4dddf8b38e33e86a8eb38c62de6b0b Mon Sep 17 00:00:00 2001 From: wangjiahui Date: Wed, 6 Jul 2022 20:43:54 +0800 Subject: [PATCH] Precompiled script adaptation M1 Signed-off-by: wangjiahui --- ts2panda/ts2abc_config.gni | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts2panda/ts2abc_config.gni b/ts2panda/ts2abc_config.gni index 496060cae9..e77f4a2714 100755 --- a/ts2panda/ts2abc_config.gni +++ b/ts2panda/ts2abc_config.gni @@ -23,7 +23,11 @@ if (!defined(ark_independent_build)) { declare_args() { buildtool_linux = "$build_root/toolchain/linux:clang_x64" - buildtool_mac = "$build_root/toolchain/mac:clang_x64" + if (host_cpu == "arm64") { + buildtool_mac = "$build_root/toolchain/mac:clang_arm64" + } else { + buildtool_mac = "$build_root/toolchain/mac:clang_x64" + } buildtool_win = "$build_root/toolchain/mingw:mingw_x86_64" nodejs_dir = "" -- Gitee