Bug 1914947 - Build Intel mac clang on arm64 workers. r=firefox-build-system-reviewers,sergesanspaille

That's actually much faster.

Differential Revision: https://phabricator.services.mozilla.com/D220531
This commit is contained in:
Mike Hommey
2024-09-04 05:29:59 +00:00
parent b9d6d77edd
commit bfbd8668f3
2 changed files with 14 additions and 5 deletions

View File

@@ -180,7 +180,16 @@ def is_windows(target):
def is_cross_compile(target):
return SUPPORTED_TARGETS[target] != (platform.system(), platform.machine())
target_system, target_machine = SUPPORTED_TARGETS[target]
system, machine = (platform.system(), platform.machine())
if system != target_system:
return True
# Don't consider x86 mac on arm64 mac a cross-compile so that we
# can build x86 mac clang on arm64 mac via Rosetta, as if they
# were building on x86.
if system == "Darwin" and machine == "arm64":
return False
return machine != target_machine
def build_one_stage(