-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
msvc: rustc produces invalid .exe (Windows XP) #34407
Comments
Well it sounds like you're not compiling for the correct target. If the problem is that you can't compile for the correct, that's the issue, but from the description it doesn't seem like rustc is producing an invalid .exe. |
@Aatch |
Yes |
Thank you! It works! @alexcrichton |
I use latest toolchain
stable-i686-pc-windows-msvc
and VC-2015 on Windows 10, compile ahelloworld.exe
(which is valid on Windows 10), and try to run it in XP, but the OS tells me that it's an invalid executable.Maybe we should have an option to use Windows Kit (SDK) 7.1 (
v140_xp
toolset etc.)?I known firefox is using some rust components, which I don't known how they are compiled for XP.
cc rust-lang/rfcs#1061 #25350 #30233 #26601
Refs:
https://msdn.microsoft.com/en-us/library/jj851139.aspx
http://stackoverflow.com/questions/33188600/how-to-set-v140-xp-toolset-in-command-prompt-for-build-with-nmake
The text was updated successfully, but these errors were encountered: