From d0dc2e7c5f6770d8ed4a480f4614a4bcc0fc922c Mon Sep 17 00:00:00 2001 From: Juho Kahala <57393910+quaternic@users.noreply.github.com> Date: Tue, 3 Feb 2026 07:03:21 +0200 Subject: [PATCH] add -Zjson-target-spec to custom target workflows (#1071) With the json target specification format destabilized in https://github.com/rust-lang/rust/pull/150151, `-Zjson-target-spec` is needed for custom targets. This should resolve the CI failures seen in rust-lang/compiler-builtins#1070 --- library/compiler-builtins/.github/workflows/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/compiler-builtins/.github/workflows/main.yaml b/library/compiler-builtins/.github/workflows/main.yaml index 6a4c72c5bc47..1572a8ec6cd1 100644 --- a/library/compiler-builtins/.github/workflows/main.yaml +++ b/library/compiler-builtins/.github/workflows/main.yaml @@ -230,7 +230,8 @@ jobs: # poorly with build scripts) cargo build -p compiler_builtins -p libm \ --target etc/thumbv7em-none-eabi-renamed.json \ - -Zbuild-std=core + -Zbuild-std=core \ + -Zjson-target-spec # FIXME: move this target to test job once https://github.com/rust-lang/rust/pull/150138 merged. build-thumbv6k: @@ -248,7 +249,8 @@ jobs: - run: | cargo build -p compiler_builtins -p libm \ --target etc/thumbv6-none-eabi.json \ - -Zbuild-std=core + -Zbuild-std=core \ + -Zjson-target-spec benchmarks: name: Benchmarks