2021-01-11 18:24:54 +00:00
|
|
|
# ignore-riscv64 $(call RUN,foo) expects to run the target executable natively
|
|
|
|
# so it won't work with remote-test-server
|
|
|
|
# ignore-arm Another build using remote-test-server
|
2021-03-15 18:00:14 +00:00
|
|
|
# ignore-none no-std is not supported
|
2021-01-11 18:24:54 +00:00
|
|
|
|
2020-10-14 12:29:57 +00:00
|
|
|
include ../../run-make-fulldeps/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,$@,$<)
|