mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
465 B
Makefile
16 lines
465 B
Makefile
include ../tools.mk
|
|
|
|
# only-aarch64
|
|
# ignore-cross-compile
|
|
|
|
all:
|
|
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c
|
|
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
|
|
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
|
|
$(call RUN,test)
|
|
|
|
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c -mbranch-protection=bti+pac-ret+leaf
|
|
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
|
|
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
|
|
$(call RUN,test)
|