Skip to content

Commit 0e5f78c

Browse files
authored
add -Zjson-target-spec to custom target workflows (#1071)
With the json target specification format destabilized in rust-lang/rust#150151, `-Zjson-target-spec` is needed for custom targets. This should resolve the CI failures seen in #1070
1 parent f4070df commit 0e5f78c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ jobs:
230230
# poorly with build scripts)
231231
cargo build -p compiler_builtins -p libm \
232232
--target etc/thumbv7em-none-eabi-renamed.json \
233-
-Zbuild-std=core
233+
-Zbuild-std=core \
234+
-Zjson-target-spec
234235
235236
# FIXME: move this target to test job once https://github.com/rust-lang/rust/pull/150138 merged.
236237
build-thumbv6k:
@@ -248,7 +249,8 @@ jobs:
248249
- run: |
249250
cargo build -p compiler_builtins -p libm \
250251
--target etc/thumbv6-none-eabi.json \
251-
-Zbuild-std=core
252+
-Zbuild-std=core \
253+
-Zjson-target-spec
252254
253255
benchmarks:
254256
name: Benchmarks

0 commit comments

Comments
 (0)