about summary refs log tree commit diff
path: root/src/test/run-make/issue-36710/Makefile
blob: b0e8451ff5d0174f34628f9de924b8ec6cd22bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include ../../run-make-fulldeps/tools.mk

# FIXME https://github.com/rust-lang/rust/issues/78911
# ignore-32bit wrong/no cross compiler and sometimes we pass wrong gcc args (-m64)

all: foo
	$(call RUN,foo)

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

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