]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/issue-36710/Makefile
Rollup merge of #100111 - estebank:missing-let, r=compiler-errors
[rust.git] / src / test / run-make / issue-36710 / Makefile
1 # ignore-riscv64 $(call RUN,foo) expects to run the target executable natively
2 #                              so it won't work with remote-test-server
3 # ignore-arm Another build using remote-test-server
4 # ignore-none no-std is not supported
5 # ignore-wasm32 FIXME: don't attempt to compile C++ to WASM
6 # ignore-wasm64 FIXME: don't attempt to compile C++ to WASM
7 # ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
8 # ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain
9 #                    (see dist-i586-gnu-i586-i686-musl Dockerfile)
10
11 include ../../run-make-fulldeps/tools.mk
12
13 all: foo
14         $(call RUN,foo)
15
16 foo: foo.rs $(call NATIVE_STATICLIB,foo)
17         $(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET)
18
19 $(TMPDIR)/libfoo.o: foo.cpp
20         $(call COMPILE_OBJ_CXX,$@,$<)