2021-03-15 13:00:14 -05:00
|
|
|
# ignore-none no-std is not supported
|
2022-10-18 02:47:55 -05:00
|
|
|
# ignore-wasm32 FIXME: don't attempt to compile C++ to WASM
|
|
|
|
# ignore-wasm64 FIXME: don't attempt to compile C++ to WASM
|
|
|
|
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
|
2021-03-16 13:22:21 -05:00
|
|
|
# ignore-musl FIXME: this makefile needs teaching how to use a musl toolchain
|
|
|
|
# (see dist-i586-gnu-i586-i686-musl Dockerfile)
|
2023-03-09 06:24:01 -06:00
|
|
|
# ignore-sgx
|
2021-01-11 12:24:54 -06:00
|
|
|
|
2020-10-14 07:29:57 -05:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2018-05-02 03:26:00 -05:00
|
|
|
|
2019-01-06 15:27:57 -06:00
|
|
|
all: foo
|
2018-05-02 03:26:00 -05:00
|
|
|
$(call RUN,foo)
|
|
|
|
|
|
|
|
foo: foo.rs $(call NATIVE_STATICLIB,foo)
|
2021-01-09 16:54:21 -06:00
|
|
|
$(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET)
|
2018-05-02 03:26:00 -05:00
|
|
|
|
|
|
|
$(TMPDIR)/libfoo.o: foo.cpp
|
|
|
|
$(call COMPILE_OBJ_CXX,$@,$<)
|