Skip to content

Commit a5ec5ce

Browse files
committed
Use option "-sf" for the AIX "ln" command.
1 parent bc145ce commit a5ec5ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/run-make/libs-through-symlinks/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ include ../tools.mk
33

44
# ignore-windows
55

6+
ifeq ($(UNAME),AIX)
7+
LN_FLAGS := -sf
8+
else
9+
LN_FLAGS := -nsf
10+
endif
11+
612
NAME := $(shell $(RUSTC) --print file-names foo.rs)
713

814
all:
915
mkdir -p $(TMPDIR)/outdir
1016
$(RUSTC) foo.rs -o $(TMPDIR)/outdir/$(NAME)
11-
ln -nsf outdir/$(NAME) $(TMPDIR)
17+
ln $(LN_FLAGS) outdir/$(NAME) $(TMPDIR)
1218
RUSTC_LOG=rustc_metadata::loader $(RUSTC) bar.rs

0 commit comments

Comments
 (0)