From 6782821ec627008bb4eed8429474ffcbcb760c88 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 30 Apr 2026 15:56:05 +0000 Subject: [PATCH] build: add temporary workaround for Rust on macOS Temporarily install the x64 Rust target on macOS at build time. To be removed when the target is installed at the macOS VM level. Signed-off-by: Richard Lau --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9c9aa320963c8e..4b684fd7801e91 100644 --- a/Makefile +++ b/Makefile @@ -1175,6 +1175,8 @@ endif | sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \ >$(MACOSOUTDIR)/installer/productbuild/Resources/$$lang/conclusion.html ; \ done + # TODO(richardlau) remove once target is added to the underlying macOS VMs. + rustup target add x86_64-apple-darwin CC_host="cc -arch x86_64" CXX_host="c++ -arch x86_64" \ CC_target="cc -arch x86_64" CXX_target="c++ -arch x86_64" \ CC="cc -arch x86_64" CXX="c++ -arch x86_64" $(PYTHON) ./configure \