fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
693 B19 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Verifies that the -L arguments given to the linker is in the same order
5# as the -L arguments on the rustc command line.
6
7CORRECT_DIR=$(TMPDIR)/correct
8WRONG_DIR=$(TMPDIR)/wrong
9
10F := $(call NATIVE_STATICLIB_FILE,foo)
11
12all: $(call NATIVE_STATICLIB,correct) $(call NATIVE_STATICLIB,wrong)
13	mkdir -p $(CORRECT_DIR) $(WRONG_DIR)
14	mv $(call NATIVE_STATICLIB,correct) $(CORRECT_DIR)/$(F)
15	mv $(call NATIVE_STATICLIB,wrong) $(WRONG_DIR)/$(F)
16	$(RUSTC) main.rs -o $(TMPDIR)/should_succeed -L $(CORRECT_DIR) -L $(WRONG_DIR)
17	$(call RUN,should_succeed)
18	$(RUSTC) main.rs -o $(TMPDIR)/should_fail -L $(WRONG_DIR) -L $(CORRECT_DIR)
19	$(call FAIL,should_fail)