forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#135113 - workingjubilee:rollup-yy6nxel, r=wor…
…kingjubilee Rollup of 4 pull requests Successful merges: - rust-lang#134925 (deny usage of special FileCheck prefixes as revision names) - rust-lang#134996 (Add UWP (msvc) target support page) - rust-lang#135104 (do not in-place-iterate over flatmap/flatten) - rust-lang#135110 (library: fix adler{ -> 2}.debug) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
9 changed files
with
149 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# `x86_64-uwp-windows-msvc`, `i686-uwp-windows-msvc`, `thumbv7a-uwp-windows-msvc` and `aarch64-uwp-windows-msvc` | ||
|
||
**Tier: 3** | ||
|
||
Windows targets for Universal Windows Platform (UWP) applications, using MSVC toolchain. | ||
|
||
## Target maintainers | ||
|
||
- [@bdbai](https://github.com/bdbai) | ||
|
||
## Requirements | ||
|
||
These targets are cross-compiled with std support. The host requirement and | ||
binary format are the same as the corresponding non-UWP targets (i.e. | ||
`x86_64-pc-windows-msvc`, `i686-pc-windows-msvc`, `thumbv7a-pc-windows-msvc` | ||
and `aarch64-pc-windows-msvc`). | ||
|
||
## Building the targets | ||
|
||
The targets can be built by enabling them for a `rustc` build, for example: | ||
|
||
```toml | ||
[build] | ||
build-stage = 1 | ||
target = ["x86_64-uwp-windows-msvc", "aarch64-uwp-windows-msvc"] | ||
``` | ||
|
||
## Building Rust programs | ||
|
||
Rust does not yet ship pre-compiled artifacts for these targets. To compile for | ||
these targets, you will either need to build Rust with the targets enabled (see | ||
"Building the targets" above), or build your own copy of `std` by using | ||
`build-std` or similar. | ||
|
||
Example of building a Rust project for x64 UWP using `build-std`: | ||
|
||
```pwsh | ||
cargo build -Z build-std=std,panic_abort --target x86_64-uwp-windows-msvc | ||
``` | ||
|
||
## Testing | ||
|
||
Currently there is no support to run the rustc test suite for this target. | ||
|
||
## Cross-compilation toolchains and C code | ||
|
||
In general, the toolchain target should match the corresponding non-UWP | ||
targets. Beware that not all Win32 APIs behave the same way in UWP, and some | ||
are restricted in [AppContainer](https://learn.microsoft.com/en-us/windows/win32/secauthz/appcontainer-for-legacy-applications-) | ||
or even not available at all. If the C code being compiled happens to use any | ||
of restricted or unavailable APIs, consider using allowed alternatives or | ||
disable certain feature sets to avoid using them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters