-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Test failure: maketest: compiler-lookup-paths #20376
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
Comments
This test was added by #19941 |
Well then, you learn something every day! It turns out that when you're using msys, path-like arguments are silently translated to windows paths away from unix-like paths. For example I wrote a small C program which just printed all its arguments:
So now that we're appending I'm... a bit flabbergasted I've never seen this until now. |
Gonna need to change |
And ironically enough msys2 will rewrite arguments of the form |
As discovered in rust-lang#20376, the MSYS shell will silently rewrite arguemnts that look like unix paths into their windows path counterparts for compatibility, but the recently added `:kind` syntax added to the `-L` flag does not allow for this form of rewriting. This means that the syntax can be difficult to use at an MSYS prompt, as well as causing tests to fail when run manuall right now. This commit takes the other option presented in the original issue to prefix the path with `kind=` instead of suffixing it with `:kind`. For consistence, the `-l` flag is also now migrating to `kind=name`. This is a breaking change due to the *removal* of behavior with `-L`. All code using `:kind` should now pass `kind=` for `-L` arguments. This is not currently, but will become, a breaking change for `-l` flags. The old `name:kind` syntax is still accepted, but all code should update to `kind=name`. [breaking-change] Closes rust-lang#20376
(Relevant info: http://www.mingw.org/wiki/Posix_path_conversion - this is for msys1, but it's from cygwin so I guess msys2 has similar behavior) |
The text was updated successfully, but these errors were encountered: