2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2023-05-02 05:53:09 -05:00
|
|
|
# needs-unwind
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2022-02-13 11:26:38 -06:00
|
|
|
|
|
|
|
all: foo
|
|
|
|
$(call RUN,foo) | $(CGREP) -v unreachable
|
|
|
|
|
|
|
|
foo: foo.rs $(call NATIVE_STATICLIB,foo)
|
|
|
|
$(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS)
|
|
|
|
|
|
|
|
$(TMPDIR)/libfoo.o: foo.cpp
|
|
|
|
$(call COMPILE_OBJ_CXX,$@,$<)
|