2018-01-04 11:15:40 -06:00
|
|
|
include ../tools.mk
|
|
|
|
|
|
|
|
all:
|
|
|
|
/bin/echo || exit 0 # This test requires /bin/echo to exist
|
|
|
|
$(RUSTC) the_backend.rs --crate-name the_backend --crate-type dylib \
|
|
|
|
-o $(TMPDIR)/the_backend.dylib
|
|
|
|
$(RUSTC) some_crate.rs --crate-name some_crate --crate-type bin -o $(TMPDIR)/some_crate \
|
|
|
|
-Z codegen-backend=$(TMPDIR)/the_backend.dylib -Z unstable-options
|
2018-02-16 08:56:50 -06:00
|
|
|
grep -x "This has been \"compiled\" successfully." $(TMPDIR)/some_crate
|