Skip to content

Commit 2a2df56

Browse files
authored
Rollup merge of #110667 - pcc:fix-pointer-auth-link-with-c, r=Mark-Simulacrum
pointer-auth-link-with-c: Fix cross compilation.
2 parents e0bb7bb + fa35156 commit 2a2df56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run-make/pointer-auth-link-with-c/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ include ../tools.mk
55
all:
66
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c
77
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
8-
$(RUSTC) -Z branch-protection=bti,pac-ret,leaf test.rs
8+
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
99
$(call RUN,test)
1010

1111
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c -mbranch-protection=bti+pac-ret+leaf
1212
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
13-
$(RUSTC) -Z branch-protection=bti,pac-ret,leaf test.rs
13+
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
1414
$(call RUN,test)

0 commit comments

Comments
 (0)