summaryrefslogtreecommitdiffstats
path: root/tests/run-make/foreign-double-unwind/Makefile
blob: b5e52808d2fc572f6e48a8a0a79f7d2face65cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# ignore-cross-compile
# needs-unwind
include ../tools.mk

all: foo
	$(call RUN,foo) | $(CGREP) -v unreachable

foo: foo.rs $(call NATIVE_STATICLIB,foo)
	$(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS)

$(TMPDIR)/libfoo.o: foo.cpp
	$(call COMPILE_OBJ_CXX,$@,$<)