Skip to content

Commit

Permalink
Rollup merge of #110667 - pcc:fix-pointer-auth-link-with-c, r=Mark-Si…
Browse files Browse the repository at this point in the history
…mulacrum

pointer-auth-link-with-c: Fix cross compilation.
  • Loading branch information
JohnTitor authored Apr 24, 2023
2 parents e0bb7bb + fa35156 commit 2a2df56
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 2a2df56

Please sign in to comment.