2023-03-30 13:46:31 +00:00
|
|
|
# ignore-cross-compile
|
2021-03-15 18:00:14 +00:00
|
|
|
# ignore-none no-std is not supported
|
2022-10-18 07:47:55 +00: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 18:22:21 +00: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 12:24:01 +00:00
|
|
|
# ignore-sgx
|
2021-01-11 18:24:54 +00:00
|
|
|
|
2023-03-30 12:58:50 +00:00
|
|
|
include ../tools.mk
|
2018-05-02 08:26:00 +00:00
|
|
|
|
2019-01-06 21:27:57 +00:00
|
|
|
all: foo
|
2018-05-02 08:26:00 +00:00
|
|
|
$(call RUN,foo)
|
|
|
|
|
|
|
|
foo: foo.rs $(call NATIVE_STATICLIB,foo)
|
2021-01-09 22:54:21 +00:00
|
|
|
$(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS) --target $(TARGET)
|
2018-05-02 08:26:00 +00:00
|
|
|
|
|
|
|
$(TMPDIR)/libfoo.o: foo.cpp
|
|
|
|
$(call COMPILE_OBJ_CXX,$@,$<)
|