summary refs log tree commit diff
path: root/src/test/run-make/relocation-model/Makefile
blob: 2fcdd32bfcbd4c54b12d57367017a00f92e57496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-include ../tools.mk

all:
	$(RUSTC) -C relocation-model=dynamic-no-pic foo.rs
	$(call RUN,foo)

	$(RUSTC) -C relocation-model=default foo.rs
	$(call RUN,foo)

	$(RUSTC) -C relocation-model=static foo.rs
	$(call RUN,foo)

	$(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs
	$(RUSTC) -C relocation-model=static --crate-type=dylib foo.rs
	$(RUSTC) -C relocation-model=dynamic-no-pic --crate-type=dylib foo.rs