summaryrefslogtreecommitdiffstats
path: root/tests/run-make/foreign-double-unwind/Makefile
blob: f20fe3ce66e823c91da1709f2b32c1817f87979c (plain)
1
2
3
4
5
6
7
8
9
10
11
# ignore-cross-compile
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,$@,$<)