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
The `*-cygwin` targets are **not** intended as native target for applications,
7
+
a developer writing Windows applications should use the `*-pc-windows-*` targets instead, which are *native* Windows.
8
+
9
+
Cygwin is only intended as an emulation layer for Unix-only programs which do not support the native Windows targets.
10
+
11
+
## Target maintainers
12
+
13
+
-[Berrysoft](https://github.com/Berrysoft)
14
+
15
+
## Requirements
16
+
17
+
This target is cross compiled. It needs `x86_64-pc-cygwin-gcc` as linker.
18
+
19
+
The `target_os` of the target is `cygwin`, and it is `unix`.
20
+
21
+
## Building the target
22
+
23
+
For cross-compilation you want LLVM with [llvm/llvm-project#121439 (merged)](https://github.com/llvm/llvm-project/pull/121439) applied to fix the LLVM codegen on importing external global variables from DLLs.
24
+
No native builds on Cygwin now. It should be possible theoretically though, but might need a lot of patches.
25
+
26
+
## Building Rust programs
27
+
28
+
Rust does not yet ship pre-compiled artifacts for this target. To compile for
29
+
this target, you will either need to build Rust with the target enabled (see
30
+
"Building the target" above), or build your own copy of `core` by using
31
+
`build-std` or similar.
32
+
33
+
## Testing
34
+
35
+
Created binaries work fine on Windows with Cygwin.
36
+
37
+
## Cross-compilation toolchains and C code
38
+
39
+
Compatible C code can be built with GCC shipped with Cygwin. Clang is untested.
0 commit comments