mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
13 lines
251 B
Makefile
13 lines
251 B
Makefile
# ignore-cross-compile
|
|
# needs-unwind
|
|
include ../tools.mk
|
|
|
|
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,$@,$<)
|