File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -196,15 +196,17 @@ jobs:
196
196
- run : cargo clippy --workspace --all-targets
197
197
198
198
build-custom :
199
- name : Custom target
199
+ name : Build custom target
200
200
runs-on : ubuntu-24.04
201
201
timeout-minutes : 10
202
202
steps :
203
203
- uses : actions/checkout@v4
204
204
- name : Install Rust
205
205
run : rustup update nightly --no-self-update && rustup default nightly
206
206
- uses : Swatinem/rust-cache@v2
207
- - run : cargo build -p compiler_builtins -p libm --target etc/thumbv7em-none-eabi-custom.json
207
+ - run : |
208
+ cargo build -p compiler_builtins -p libm \
209
+ --target etc/thumbv7em-none-eabi-custom.json
208
210
209
211
benchmarks :
210
212
name : Benchmarks
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ impl Target {
45
45
let out = cmd
46
46
. output ( )
47
47
. unwrap_or_else ( |e| panic ! ( "failed to run `{cmd:?}`: {e}" ) ) ;
48
- assert ! ( out. status. success( ) , "failed to run `{cmd:?}`" ) ;
49
48
let rustc_cfg = str:: from_utf8 ( & out. stdout ) . unwrap ( ) ;
49
+ let rustc_output_ok = out. status . success ( ) ;
50
+ let reliable_f128 =
51
+ !rustc_output_ok || rustc_cfg. lines ( ) . any ( |l| l == "target_has_reliable_f128" ) ;
52
+ let reliable_f16 =
53
+ !rustc_output_ok || rustc_cfg. lines ( ) . any ( |l| l == "target_has_reliable_f16" ) ;
50
54
51
55
Self {
52
56
triple,
@@ -67,8 +71,8 @@ impl Target {
67
71
. split ( "," )
68
72
. map ( ToOwned :: to_owned)
69
73
. collect ( ) ,
70
- reliable_f128 : rustc_cfg . lines ( ) . any ( |l| l == "target_has_reliable_f128" ) ,
71
- reliable_f16 : rustc_cfg . lines ( ) . any ( |l| l == "target_has_reliable_f16" ) ,
74
+ reliable_f128,
75
+ reliable_f16,
72
76
}
73
77
}
74
78
You can’t perform that action at this time.
0 commit comments