mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
[CI] run-make/thumb: 1st working version with hacky workaround.
This commit is contained in:
parent
5af644c77b
commit
633832ffc2
@ -1,20 +1,28 @@
|
||||
# Don't use the definitions
|
||||
#-include ../../run-make-fulldeps/tools.mk
|
||||
-include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
# How to run this
|
||||
# $ ./x.py dist --target x86_64-unknown-linux-gnu,thumbv7m-none-eabi --exclude src/doc
|
||||
# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make
|
||||
|
||||
ifeq ($(TARGET),thumbv7m-none-eabi)
|
||||
|
||||
#TMP_DIR := $(shell mktemp -d)
|
||||
TMP_DIR := /tmp/safe_place
|
||||
CRATE := cortex-m
|
||||
LD_LIBRARY_PATH=/home/sekineh/rustme9/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib
|
||||
RUSTC := $(RUSTC_ORIGINAL)
|
||||
LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
|
||||
HOST := x86_64-unknown-linux-gnu
|
||||
|
||||
all:
|
||||
# Workaround for error[E0463]: can't find crate for `core`
|
||||
-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/
|
||||
# Workaround for error[E0463]: can't find crate for `std`
|
||||
-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/
|
||||
env > env.txt
|
||||
mkdir -p $(TMP_DIR)
|
||||
-cd $(TMP_DIR) && rm -rf $(CRATE)
|
||||
cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0
|
||||
pwd
|
||||
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
|
||||
cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build -j 1 --target $(TARGET) -v
|
||||
else
|
||||
|
||||
all:
|
||||
|
Loading…
Reference in New Issue
Block a user