You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust does not yet ship pre-compiled artifacts for this target. To compile for
34
-
this target, you will either need to build Rust with the target enabled (see
35
-
"Building the target" above), or build your own copy of `core` by using
36
-
`build-std` or similar.
33
+
Rust does not ship pre-compiled artifacts for this target. To compile for this
34
+
target, you will either need to build Rust with the target enabled (see
35
+
"Building the target" above), or build your own copy by using `build-std` or
36
+
similar.
37
37
38
38
## Testing
39
39
40
-
Created binaries work fine on Windows or Wine using native hardware.
40
+
Created binaries work fine on Windows or Wine using native hardware. Remote
41
+
testing is possible using the `remote-test-server` described [here](https://rustc-dev-guide.rust-lang.org/tests/running.html#running-tests-on-a-remote-machine).
41
42
42
43
## Cross-compilation toolchains and C code
43
44
44
45
Compatible C code can be built with either MSVC's `cl.exe` or LLVM's clang-cl.
46
+
47
+
Cross-compilation is possible using clang-cl/lld-link. It also requires the
48
+
Windows SDK, which can be acquired using [`xwin`](https://github.com/Jake-Shadle/xwin).
49
+
50
+
- Install `clang-cl` and `lld-link` on your machine, and make sure they are in
51
+
your $PATH.
52
+
- Install `xwin`: `cargo install xwin`
53
+
- Use `xwin` to install the Windows SDK: `xwin splat --output winsdk`
54
+
- Create an `xwin-lld-link` script with the following content:
0 commit comments