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
Copy file name to clipboardExpand all lines: src/doc/rustc/src/platform-support/x86_64-pc-cygwin.md
+8-13Lines changed: 8 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
**Tier: 3**
4
4
5
-
Windows targets supporting Cygwin and MSYS2.
6
-
The `*-cygwin-*` targets are **not** intended as native targets for applications,
5
+
Windows targets supporting Cygwin.
6
+
The `*-cygwin` targets are **not** intended as native target for applications,
7
7
a developer writing Windows applications should use the `*-pc-windows-*` targets instead, which are *native* Windows.
8
8
9
9
Cygwin is only intended as an emulation layer for Unix-only programs which do not support the native Windows targets.
@@ -14,19 +14,14 @@ Cygwin is only intended as an emulation layer for Unix-only programs which do no
14
14
15
15
## Requirements
16
16
17
-
This target is cross compiled. Different `target_env` needs different linker:
18
-
-`x86_64-pc-cygwin`: `x86_64-pc-cygwin-gcc`
19
-
-`x86_64-pc-cygwin-msys2`: `x86_64-pc-msys-gcc`
17
+
This target is cross compiled. It needs `x86_64-pc-cygwin-gcc` as linker.
20
18
21
-
The difference between two targets are small.
22
-
The `target_os` of these targets are `cygwin`, and they are `unix`.
23
-
24
-
To gain high performance, users are recommended to use *more* native targets, e.g., `x86_64-pc-windows-*`.
19
+
The `target_os` of the target is `cygwin`, and it is `unix`.
25
20
26
21
## Building the target
27
22
28
-
For cross-compilation you want LLVM with [llvm/llvm-project#121439](https://github.com/llvm/llvm-project/pull/121439) applied to fix the LLVM codegen on importing external global variables from DLLs.
29
-
No native builds on Cygwin or MSYS2 now. It should be possible theoretically though, but might need a lot of patches.
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.
30
25
31
26
## Building Rust programs
32
27
@@ -37,8 +32,8 @@ this target, you will either need to build Rust with the target enabled (see
37
32
38
33
## Testing
39
34
40
-
Created binaries work fine on Windows with Cygwin or MSYS2.
35
+
Created binaries work fine on Windows with Cygwin.
41
36
42
37
## Cross-compilation toolchains and C code
43
38
44
-
Compatible C code can be built with GCC shipped with Cygwin or MSYS2. Clang is untested.
39
+
Compatible C code can be built with GCC shipped with Cygwin. Clang is untested.
0 commit comments