Skip to content

Commit 71b74f8

Browse files
committed
pass TARGET_AR to Cargo
1 parent f5203e4 commit 71b74f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misoc/software/common.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ endif
3434
MSCIMG_normal := $(PYTHON) -m misoc.tools.mkmscimg
3535

3636
ifeq ($(CPU),or1k)
37-
CARGO_normal := env CARGO_TARGET_DIR=$(realpath .)/cargo cargo rustc --target $(CARGO_TRIPLE)
37+
CARGO_normal := env CARGO_TARGET_DIR=$(realpath .)/cargo TARGET_AR=$(AR_normal) cargo rustc --target $(CARGO_TRIPLE)
3838
endif
3939
ifeq ($(CPU),vexriscv)
40-
CARGO_normal := cargo xbuild
40+
CARGO_normal := env TARGET_AR=$(AR_normal) cargo xbuild
4141
endif
4242
ifeq ($(CPU),vexriscv-g)
43-
CARGO_normal := cargo xbuild
43+
CARGO_normal := env TARGET_AR=$(AR_normal) cargo xbuild
4444
endif
4545

4646
CC_quiet = @echo " CC " $@ && $(CC_normal)

0 commit comments

Comments
 (0)