This repository was archived by the owner on Apr 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,11 @@ if (custom_toolchain != "") {
531
531
} else if (host_os == " mac" ) {
532
532
host_toolchain = " //build/toolchain/mac:clang_$host_cpu "
533
533
} else if (host_os == " win" ) {
534
- host_toolchain = " //build/toolchain/win:$current_cpu "
534
+ if (is_clang ) {
535
+ host_toolchain = " //build/toolchain/win:clang_$host_cpu "
536
+ } else {
537
+ host_toolchain = " //build/toolchain/win:$host_cpu "
538
+ }
535
539
} else {
536
540
assert (false , " Unknown host for android cross compile" )
537
541
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if (current_toolchain == default_toolchain) {
61
61
" copy_dlls" ,
62
62
rebase_path (root_build_dir ),
63
63
configuration ,
64
- target_cpu ,
64
+ current_cpu ,
65
65
])
66
66
}
67
67
@@ -284,6 +284,13 @@ if (target_cpu == "x64") {
284
284
}
285
285
}
286
286
287
+ if (target_cpu == " arm" ) {
288
+ # When the target cpu is "arm", we use the 32-bit intel toolchain "x86".
289
+ win_toolchains (" x86" ) {
290
+ toolchain_arch = " x86"
291
+ }
292
+ }
293
+
287
294
if (target_cpu == " arm64" ) {
288
295
win_toolchains (" arm64" ) {
289
296
toolchain_arch = " arm64"
You can’t perform that action at this time.
0 commit comments