mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +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)
|