mirror of
https://github.com/rust-lang/rust
synced 2024-10-02 06:44:33 +00:00
14 lines
306 B
Makefile
14 lines
306 B
Makefile
# needs-matching-clang
|
|
|
|
include ../tools.mk
|
|
|
|
ifeq ($(TARGET),wasm32-unknown-unknown)
|
|
all:
|
|
$(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=$(CLANG)
|
|
else ifeq ($(TARGET),wasm64-unknown-unknown)
|
|
all:
|
|
$(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=$(CLANG)
|
|
else
|
|
all:
|
|
endif
|