File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
src/test/run-make/thumb-none-cortex-m Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- # Don't use the definitions
2
- # -include ../../run-make-fulldeps/tools.mk
1
+ -include ../../run-make-fulldeps/tools.mk
2
+
3
+ # How to run this
4
+ # $ ./x.py dist --target x86_64-unknown-linux-gnu,thumbv7m-none-eabi --exclude src/doc
5
+ # $ ./x.py test --target thumbv7m-none-eabi src/test/run-make
3
6
4
7
ifeq ($(TARGET ) ,thumbv7m-none-eabi)
5
8
6
9
# TMP_DIR := $(shell mktemp -d)
7
10
TMP_DIR := /tmp/safe_place
8
11
CRATE := cortex-m
9
- LD_LIBRARY_PATH =/home/sekineh/rustme9/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib
12
+ RUSTC := $(RUSTC_ORIGINAL )
13
+ LD_LIBRARY_PATH := $(HOST_RPATH_DIR )
14
+ HOST := x86_64-unknown-linux-gnu
10
15
11
16
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/
12
21
env > env.txt
13
22
mkdir -p $(TMP_DIR )
14
23
-cd $(TMP_DIR ) && rm -rf $(CRATE )
15
24
cd $(TMP_DIR ) && $(CARGO ) clone $(CRATE ) --vers 0.5.0
16
- pwd
17
- cd $(TMP_DIR ) && cd $(CRATE ) && env RUST_LOG=debug $(CARGO ) build -j 1 --target $(TARGET ) -vv 2>&1 | tee cargo-fail-vv-9.2.log
25
+ cd $(TMP_DIR ) && cd $(CRATE ) && $(CARGO ) build -j 1 --target $(TARGET ) -v
18
26
else
19
27
20
28
all :
You can’t perform that action at this time.
0 commit comments