File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
test/run-make/thumb-none-cortex-m Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -975,9 +975,19 @@ impl Step for Compiletest {
975
975
builder. ensure ( compile:: Rustc { compiler, target } ) ;
976
976
}
977
977
978
- if builder. no_std ( target) != Some ( true ) {
978
+ if builder. no_std ( target) == Some ( true ) {
979
+ // the `test` doesn't compile for no-std targets
980
+ builder. ensure ( compile:: Std { compiler, target } ) ;
981
+ } else {
979
982
builder. ensure ( compile:: Test { compiler, target } ) ;
980
983
}
984
+
985
+ if builder. no_std ( target) == Some ( true ) {
986
+ // for no_std run-make (e.g. thumb*),
987
+ // we need a host compiler which is called by cargo.
988
+ builder. ensure ( compile:: Std { compiler, target : compiler. host } ) ;
989
+ }
990
+
981
991
builder. ensure ( native:: TestHelpers { target } ) ;
982
992
builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
983
993
Original file line number Diff line number Diff line change @@ -11,13 +11,8 @@ TMP_DIR := /tmp/safe_place
11
11
CRATE := cortex-m
12
12
RUSTC := $(RUSTC_ORIGINAL )
13
13
LD_LIBRARY_PATH := $(HOST_RPATH_DIR )
14
- HOST := x86_64-unknown-linux-gnu
15
14
16
15
all :
17
- # Workaround for error[E0463]: can't find crate for `core`
18
- -ln -sv $(SRC ) /build/tmp/dist/rust-std-* -$(TARGET ) /rust-std-$(TARGET ) /lib/rustlib/$(TARGET ) /lib/* .rlib $(SRC ) /build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(TARGET ) /lib/
19
- # Workaround for error[E0463]: can't find crate for `std`
20
- -ln -sv $(SRC ) /build/tmp/dist/rust-std-* -$(HOST ) /rust-std-$(HOST ) /lib/rustlib/$(HOST ) /lib/* .rlib $(SRC ) /build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(HOST ) /lib/
21
16
env > env.txt
22
17
mkdir -p $(TMP_DIR )
23
18
-cd $(TMP_DIR ) && rm -rf $(CRATE )
You can’t perform that action at this time.
0 commit comments