2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2014-04-05 07:10:13 -05:00
|
|
|
|
2015-08-26 18:57:56 -05:00
|
|
|
all: others
|
2014-04-05 07:10:13 -05:00
|
|
|
$(RUSTC) -C relocation-model=dynamic-no-pic foo.rs
|
|
|
|
$(call RUN,foo)
|
|
|
|
|
|
|
|
$(RUSTC) -C relocation-model=default foo.rs
|
|
|
|
$(call RUN,foo)
|
|
|
|
|
2016-03-01 07:19:00 -06:00
|
|
|
$(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:
|
2014-04-05 07:10:13 -05:00
|
|
|
$(RUSTC) -C relocation-model=static foo.rs
|
|
|
|
$(call RUN,foo)
|
2015-08-26 18:57:56 -05:00
|
|
|
endif
|