summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/issue-36710/Makefile
blob: 986a3f4e64bab0537a3b4440cff847d9c035ce45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ignore-cross-compile $(call RUN,foo) expects to run the target executable natively
#                              so it won't work with remote-test-server
# ignore-none no-std is not supported
# ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain
#                    (see dist-i586-gnu-i586-i686-musl Dockerfile)

include ../../run-make-fulldeps/tools.mk

all: foo
	$(call RUN,foo)

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

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