-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Windows builds with MinGW-w64 GCC not including manifest for long path support #152720
Copy link
Copy link
Open
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Metadata
Metadata
Assignees
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm trying to build the Rust compiler (currently 1.93.1) for Windows using MinGW-w64 + GCC and none of the MSVC tools.
For now I'm still allowing the bootstrap to use LLVM, as I didn't get it working et with GCC.
This resulted in a working build, except for one issue: the Manifest file specifying long path support was not included in the resulting
.exefile(s).Looking at files like:
compiler/rustc/build.rscompiler/rustc_driver/build.rssrc/tools/cargo/build.rsI see code like:
which means MinGW-w64 is not considered on the Windows platform.
For MinGW-w64 the resource compiler is
windresand it has different command line arguments than MSVC'src.This probably requires some changes in
compiler/rustc_windows_rc/src/lib.rs.For your reference, an example on how to get the manifest in the
.exefile could look like this:if the
.ofile is the linked into the.exefile it should contain the manifest (and the icon in this example).Is anybody working on this, or can you make some suggestions on what is needed to get this working?