mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
e6b9bb7b72
This adds the `only-apple`/`ignore-apple` compiletest directive, and uses that basically everywhere instead of `only-macos`/`ignore-macos`. Some of the updates in `run-make` are a bit redundant, as they use `ignore-cross-compile` and won't run on iOS - but using Apple in these is still more correct, so I've made that change anyhow.
11 lines
360 B
Makefile
11 lines
360 B
Makefile
# only-apple
|
|
|
|
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
|