summary refs log tree commit diff
path: root/src/test/run-make/c-dynamic-dylib/Makefile
blob: 83bddd4c73c3f481d2f0084292cdffbeecb751dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-include ../tools.mk

# This hits an assertion in the linker on older versions of osx apparently
ifeq ($(shell uname),Darwin)
all:
	echo ignored
else
all: $(call DYLIB,cfoo)
	$(RUSTC) foo.rs -C prefer-dynamic
	$(RUSTC) bar.rs
	$(call RUN,bar)
	$(call REMOVE_DYLIBS,cfoo)
	$(call FAIL,bar)
endif