mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
26e1ce7394
apparently I missed some tests in the last commit. Rather than having dozens of tests use the long version, use the short version in `run-make` and the long version in `run-make-fulldeps` (which is now only three tests)
11 lines
360 B
Makefile
11 lines
360 B
Makefile
# only-macos
|
|
|
|
include ../tools.mk
|
|
|
|
"$(TMPDIR)"/libnative-library.a: native-library.c
|
|
$(CC) -arch arm64 -arch x86_64 native-library.c -c -o "$(TMPDIR)"/native-library.o
|
|
$(AR) crs "$(TMPDIR)"/libnative-library.a "$(TMPDIR)"/native-library.o
|
|
|
|
all: "$(TMPDIR)"/libnative-library.a
|
|
$(RUSTC) lib.rs --crate-type=lib -L "native=$(TMPDIR)" -l static=native-library
|