Skip to content

Commit

Permalink
Allow building with host toolchain when building arm64e on an arm64 h…
Browse files Browse the repository at this point in the history
…ost.

The host toolchain should be fine in this case.
  • Loading branch information
bzbarsky-apple committed Jan 7, 2023
1 parent 8c7c641 commit bb4af38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ if (_chip_defaults.custom_toolchain != "") {
}

_default_toolchain = "${_build_overrides.build_root}/toolchain/linux:linux_${target_cpu}_${_target_compiler}"
} else if (target_os == host_os && target_cpu == host_cpu) {
} else if (target_os == host_os &&
(target_cpu == host_cpu ||
(target_cpu == "arm64e" && host_cpu == "arm64"))) {
_default_toolchain = host_toolchain
} else if (target_os == "freertos") {
if (_chip_defaults.is_clang) {
Expand Down

0 comments on commit bb4af38

Please sign in to comment.