about summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/hotplug_codegen_backend/Makefile
blob: e203ec2737fc7f2cb67465461145e921cb61be7b (plain)
1
2
3
4
5
6
7
8
9
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 lib -o $(TMPDIR)/some_crate \
		-Z codegen-backend=$(TMPDIR)/the_backend.dylib -Z unstable-options
	grep -x "This has been \"compiled\" successfully." $(TMPDIR)/some_crate