-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
bootstrap.py: Always use .exe
for Windows
#98895
Conversation
This ensure that it will run the Windows executable if other files in the directory (such as Linux executables) have the same file name minus the extension.
(rust-highfive has picked a reviewer for you, use r? to override) |
Hmm, this worked before because Windows will look for .exe files if
That seems kind of odd - is this something we're generating? Are you switching between MSVC and gnu hosts maybe? That said, this looks fine - r=me |
Yeah, if
I think it's me switching to WSL sometimes. |
@bors r+ rollup |
📌 Commit b1541ff has been approved by |
Co-authored-by: Marco Colombo <mar.colombo13@gmail.com>
📌 Commit 9ac4a4e has been approved by |
bootstrap.py: Always use `.exe` for Windows This ensures that it will run the Windows executable if other files in the directory (such as Linux executables) have the same file name minus the extension. I've been tripped up by this a few times where both `bootstrap` and `bootstrap.exe` end up in the same directory. This PR avoids ever having to see the following message: `OSError: [WinError 193] %1 is not a valid Win32 application`
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#98860 (adjust dangling-int-ptr error message) - rust-lang#98888 (interpret: fix CheckedBinOp behavior when overflow checking is disabled) - rust-lang#98889 (Add regression test for rust-lang#79467) - rust-lang#98895 (bootstrap.py: Always use `.exe` for Windows) - rust-lang#98920 (adapt issue-37945 codegen test to accept any order of ops) - rust-lang#98921 (Refactor: remove a redundant mutable variable) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This ensures that it will run the Windows executable if other files in the directory (such as Linux executables) have the same file name minus the extension. I've been tripped up by this a few times where both
bootstrap
andbootstrap.exe
end up in the same directory.This PR avoids ever having to see the following message:
OSError: [WinError 193] %1 is not a valid Win32 application