1 # ignore-none no-std is not supported
2 # ignore-wasm32 FIXME: don't attempt to compile C++ to WASM
3 # ignore-wasm64 FIXME: don't attempt to compile C++ to WASM
4 # ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
5 # ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain
6 # (see dist-i586-gnu-i586-i686-musl Dockerfile)
8 include ../../run-make-fulldeps/tools.mk
13 foo: foo.rs $(call NATIVE_STATICLIB,foo)
14 $(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET)
16 $(TMPDIR)/libfoo.o: foo.cpp
17 $(call COMPILE_OBJ_CXX,$@,$<)