]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/issue-36710/Makefile
928bdf532df8e0ab113a163e25d84831deea25f9
[rust.git] / src / test / run-make-fulldeps / issue-36710 / Makefile
1 -include ../tools.mk
2
3 ifeq (musl,$(findstring musl,$(TARGET)))
4 all: skip
5 else
6 all: test
7 endif
8
9 test: foo
10         $(call RUN,foo)
11
12 skip:
13         echo "expected failure"
14
15 foo: foo.rs $(call NATIVE_STATICLIB,foo)
16         $(RUSTC) $< -lfoo $(EXTRACXXFLAGS)
17
18 $(TMPDIR)/libfoo.o: foo.cpp
19         $(call COMPILE_OBJ_CXX,$@,$<)
20
21 .PHONY: all test skip