Skip to content

Commit fa35156

Browse files
committed
pointer-auth-link-with-c: Fix cross compilation.
1 parent fa4cc63 commit fa35156

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)