rust/tests/run-make-fulldeps/relocation-model/Makefile

20 lines
372 B
Makefile
Raw Normal View History

include ../tools.mk
2015-08-26 18:57:56 -05:00
all: others
$(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=dynamic-no-pic --crate-type=dylib foo.rs --emit=link,obj
2015-08-26 18:57:56 -05:00
ifdef IS_MSVC
# FIXME(#28026)
others:
else
others:
$(RUSTC) -C relocation-model=static foo.rs
$(call RUN,foo)
2015-08-26 18:57:56 -05:00
endif