Skip to content

Commit

Permalink
Buildroot side of change to narrow Windows Android arm hack
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso committed Nov 1, 2022
1 parent ad96f00 commit f33db0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,11 @@ if (custom_toolchain != "") {
} else if (host_os == "mac") {
host_toolchain = "//build/toolchain/mac:clang_$host_cpu"
} else if (host_os == "win") {
host_toolchain = "//build/toolchain/win:$current_cpu"
if (is_clang) {
host_toolchain = "//build/toolchain/win:clang_$host_cpu"
} else {
host_toolchain = "//build/toolchain/win:$host_cpu"
}
} else {
assert(false, "Unknown host for android cross compile")
}
Expand Down
9 changes: 8 additions & 1 deletion build/toolchain/win/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (current_toolchain == default_toolchain) {
"copy_dlls",
rebase_path(root_build_dir),
configuration,
target_cpu,
current_cpu,
])
}

Expand Down Expand Up @@ -284,6 +284,13 @@ if (target_cpu == "x64") {
}
}

if (target_cpu == "arm") {
# When the target cpu is "arm", we use the 32-bit intel toolchain "x86".
win_toolchains("x86") {
toolchain_arch = "x86"
}
}

if (target_cpu == "arm64") {
win_toolchains("arm64") {
toolchain_arch = "arm64"
Expand Down

0 comments on commit f33db0f

Please sign in to comment.