Skip to content

Commit

Permalink
Fix remap-path-prefix test due to unconditional rmeta remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Mar 18, 2024
1 parent 77a8206 commit fe8e0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-make/remap-path-prefix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ remap-with-scope:
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1

$(RUSTC) --remap-path-prefix $$PWD/auxiliary=/the/aux -Zremap-path-scope=macro $(DEBUGINFOOPTS) --crate-type=lib --emit=metadata auxiliary/lib.rs
! grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1

$(RUSTC) --remap-path-prefix $$PWD/auxiliary=/the/aux -Zremap-path-scope=diagnostics,object $(DEBUGINFOOPTS) --crate-type=lib --emit=metadata auxiliary/lib.rs
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
Expand Down

0 comments on commit fe8e0d6

Please sign in to comment.