Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make unix path handling on Windows hosts (and vice versa) preserve absoluteness #2725

Merged
merged 4 commits into from
Dec 12, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Dec 11, 2022

Also adds a magic Miri extern function so this conversion can be invoked by the program. That avoids having to duplicate that logic.

@RalfJung RalfJung force-pushed the host-to-target-path branch from 0e40664 to d98d5d0 Compare December 11, 2022 18:24
@RalfJung RalfJung changed the title expose host-to-target path conversion to interpreted program make unix path handling on Windows hosts preserve absoluteness Dec 11, 2022
@RalfJung RalfJung force-pushed the host-to-target-path branch from d4c500e to 1872101 Compare December 11, 2022 18:56
@RalfJung RalfJung force-pushed the host-to-target-path branch 6 times, most recently from 791ba57 to abce83a Compare December 11, 2022 20:42
@RalfJung
Copy link
Member Author

This seems to actually work. :)

@rust-lang/miri are you fine with this patch or is it too terrible of a hack?^^

@RalfJung RalfJung force-pushed the host-to-target-path branch 2 times, most recently from fbdc0c2 to dab02cc Compare December 11, 2022 21:36
@RalfJung RalfJung changed the title make unix path handling on Windows hosts preserve absoluteness make unix path handling on Windows hosts (and vice versa) preserve absoluteness Dec 11, 2022
@RalfJung RalfJung force-pushed the host-to-target-path branch 3 times, most recently from 105eeb5 to 03eee6b Compare December 11, 2022 21:56
@RalfJung RalfJung force-pushed the host-to-target-path branch 2 times, most recently from c2a31c8 to 038117c Compare December 12, 2022 10:13
@RalfJung RalfJung force-pushed the host-to-target-path branch from 038117c to 03f1ce4 Compare December 12, 2022 10:17
@oli-obk
Copy link
Contributor

oli-obk commented Dec 12, 2022

The duplication in the tests is annoying, but that's a separate issue we have with all of those extern C miri helpers.

lgtm!

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Dec 12, 2022

📌 Commit 03f1ce4 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 12, 2022

⌛ Testing commit 03f1ce4 with merge 1fca5a9...

@bors
Copy link
Contributor

bors commented Dec 12, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 1fca5a9 to master...

@bors bors merged commit 1fca5a9 into rust-lang:master Dec 12, 2022
@RalfJung RalfJung deleted the host-to-target-path branch December 16, 2022 11:19
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 25, 2022
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Dec 28, 2022
spikespaz pushed a commit to spikespaz/dotwalk-rs that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants