fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
373 B19 linesraw
1-include ../tools.mk
2
3all: others
4	$(RUSTC) -C relocation-model=dynamic-no-pic foo.rs
5	$(call RUN,foo)
6
7	$(RUSTC) -C relocation-model=default foo.rs
8	$(call RUN,foo)
9
10	$(RUSTC) -C relocation-model=dynamic-no-pic --crate-type=dylib foo.rs --emit=link,obj
11
12ifdef IS_MSVC
13# FIXME(#28026)
14others:
15else
16others:
17	$(RUSTC) -C relocation-model=static foo.rs
18	$(call RUN,foo)
19endif