fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1# ignore-cross-compile 2# ignore-none no-std is not supported 3# ignore-wasm32 FIXME: don't attempt to compile C++ to WASM 4# ignore-wasm64 FIXME: don't attempt to compile C++ to WASM 5# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std` 6# ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain 7# (see dist-i586-gnu-i586-i686-musl Dockerfile) 8# ignore-sgx 9 10include ../tools.mk 11 12all: foo 13 $(call RUN,foo) 14 15foo: foo.rs $(call NATIVE_STATICLIB,foo) 16 $(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET) 17 18$(TMPDIR)/libfoo.o: foo.cpp 19 $(call COMPILE_OBJ_CXX,$@,$<)