]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/issue-36710/Makefile
Auto merge of #102332 - chriswailes:ndk-update, r=chriswailes
[rust.git] / src / test / run-make / issue-36710 / Makefile
1 # ignore-cross-compile $(call RUN,foo) expects to run the target executable natively
2 #                              so it won't work with remote-test-server
3 # ignore-none no-std is not supported
4 # ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain
5 #                    (see dist-i586-gnu-i586-i686-musl Dockerfile)
6
7 include ../../run-make-fulldeps/tools.mk
8
9 all: foo
10         $(call RUN,foo)
11
12 foo: foo.rs $(call NATIVE_STATICLIB,foo)
13         $(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET)
14
15 $(TMPDIR)/libfoo.o: foo.cpp
16         $(call COMPILE_OBJ_CXX,$@,$<)