diff options
Diffstat (limited to 'src/test/run-make/relocation-model/Makefile')
| -rw-r--r-- | src/test/run-make/relocation-model/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/run-make/relocation-model/Makefile b/src/test/run-make/relocation-model/Makefile new file mode 100644 index 00000000000..2fcdd32bfcb --- /dev/null +++ b/src/test/run-make/relocation-model/Makefile @@ -0,0 +1,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 |
