]> git.lizzy.rs Git - rust.git/commit
Auto merge of #96737 - ChrisDenton:win-manifest, r=wesleywiser
authorbors <bors@rust-lang.org>
Thu, 2 Jun 2022 07:58:29 +0000 (07:58 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Jun 2022 07:58:29 +0000 (07:58 +0000)
commit5e6bb83268518dcd74c96b5504f485b71e604e4c
tree3145c686b4ed2b423a433cfe8002c86eca67dc89
parentfb1976011e3df96b5d3eccd6b2f4e51ef7dc8f16
parent7255bc63387eacd097e960800a05299c93e57d4d
Auto merge of #96737 - ChrisDenton:win-manifest, r=wesleywiser

Add Windows application manifest to rustc-main

Windows allows setting some runtime options using a manifest file. The format of the XML file is documented here: https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests

The manifest file in this PR does three things:

* Declares which Windows versions we support. This may help avoid unnecessary compatibility shims.
* Uses the UTF-8 code page. While Rust itself uses UTF-16 APIs, other code may rely on the code page.
* Makes the application long path aware (if also enabled by the user). This allows for the current directory to be longer than `PATH_MAX`.

These changes only affect the `rustc` process and not any other DLLs or compiled programs.