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 19, 2024
1 parent b3c2fa8 commit e12220d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-make/remap-path-prefix/Makefile
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 e12220d

Please sign in to comment.