Skip to content

Commit

Permalink
pointer-auth-link-with-c: Fix cross compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcc committed Apr 22, 2023
1 parent fa4cc63 commit fa35156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-make/pointer-auth-link-with-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ include ../tools.mk
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
$(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) -Z branch-protection=bti,pac-ret,leaf test.rs
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
$(call RUN,test)

0 comments on commit fa35156

Please sign in to comment.