Skip to content

msvc: rustc produces invalid .exe (Windows XP) #34407

Closed
@liigo

Description

@liigo

I use latest toolchain stable-i686-pc-windows-msvc and VC-2015 on Windows 10, compile a helloworld.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions