summaryrefslogtreecommitdiffstats
path: root/tests/run-make/pointer-auth-link-with-c/Makefile
blob: 7acea03802cb39d23406f0da5a93f7dc6e7b79a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../tools.mk

# only-aarch64

all:
	$(COMPILE_OBJ) $(TMPDIR)/test.o test.c
	$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
	$(RUSTC) -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) -Z branch-protection=bti,pac-ret,leaf test.rs
	$(call RUN,test)