Skip to content

Commit 55cb0e5

Browse files
authored
Rollup merge of #68194 - jonas-schievink:fix-thumb-ci, r=alexcrichton
Fix CI for embedded ARM targets Closes #67018 It would be better to move the `thumb-none-cortex-m` test into the `cargotest` suite, but it doesn't seem to support cross-compilation.
2 parents e2d2180 + f37601a commit 55cb0e5

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/test/run-make/thumb-none-cortex-m/Makefile

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
# - thumbv7em-none-eabihf (Bare Cortex-M4F, M7F, FPU, hardfloat)
1111
# - thumbv7m-none-eabi (Bare Cortex-M3)
1212

13-
# only-thumbv6m-none-eabi
14-
# only-thumbv7em-none-eabi
15-
# only-thumbv7em-none-eabihf
16-
# only-thumbv7m-none-eabi
13+
# only-thumb
1714

1815
# For cargo setting
1916
RUSTC := $(RUSTC_ORIGINAL)
@@ -27,7 +24,8 @@ CRATE := cortex-m
2724
CRATE_URL := https://github.com/rust-embedded/cortex-m
2825
CRATE_SHA1 := a448e9156e2cb1e556e5441fd65426952ef4b927 # 0.5.0
2926

30-
export RUSTFLAGS := --cap-lints=allow
27+
# Don't make lints fatal, but they need to at least warn or they break Cargo's target info parsing.
28+
export RUSTFLAGS := --cap-lints=warn
3129

3230
all:
3331
env

src/test/run-make/thumb-none-qemu/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-include ../../run-make-fulldeps/tools.mk
22

3-
# only-thumbv7m-none-eabi
4-
# only-thumbv6m-none-eabi
3+
# only-thumb
54

65
# How to run this
76
# $ ./x.py clean

src/tools/compiletest/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ fn is_up_to_date(
624624

625625
// Check timestamps.
626626
let mut inputs = inputs.clone();
627-
inputs.add_path(&testpaths.file);
627+
// Use `add_dir` to account for run-make tests, which use their individual directory
628+
inputs.add_dir(&testpaths.file);
628629

629630
for aux in &props.aux {
630631
let path = testpaths.file.parent().unwrap().join("auxiliary").join(aux);

0 commit comments

Comments
 (0)