Skip to content

Commit 1ac7881

Browse files
committed
Add --target flag to issue-85019-moved-src-dir
1 parent fd15c18 commit 1ac7881

File tree

1 file changed

+4
-4
lines changed
  • src/test/run-make/issue-85019-moved-src-dir

1 file changed

+4
-4
lines changed

src/test/run-make/issue-85019-moved-src-dir/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ all:
1818
cp my_lib.rs $(FIRST_SRC)/my_lib.rs
1919
cp main.rs $(FIRST_SRC)/main.rs
2020
cd $(FIRST_SRC) && \
21-
$(RUSTC) -C incremental=$(INCR) --crate-type lib my_lib.rs && \
22-
$(RUSTC) -C incremental=$(INCR) --extern my_lib=$(TMPDIR)/libmy_lib.rlib main.rs
21+
$(RUSTC) -C incremental=$(INCR) --crate-type lib my_lib.rs --target $(TARGET) && \
22+
$(RUSTC) -C incremental=$(INCR) --extern my_lib=$(TMPDIR)/libmy_lib.rlib main.rs --target $(TARGET)
2323
# Build from 'SECOND_SRC', keeping the output directory and incremental directory
2424
# the same
2525
mv $(FIRST_SRC) $(SECOND_SRC)
2626
cd $(SECOND_SRC) && \
27-
$(RUSTC) -C incremental=$(INCR) --crate-type lib my_lib.rs && \
28-
$(RUSTC) -C incremental=$(INCR) --extern my_lib=$(TMPDIR)/libmy_lib.rlib main.rs
27+
$(RUSTC) -C incremental=$(INCR) --crate-type lib my_lib.rs --target $(TARGET) && \
28+
$(RUSTC) -C incremental=$(INCR) --extern my_lib=$(TMPDIR)/libmy_lib.rlib main.rs --target $(TARGET)

0 commit comments

Comments
 (0)