cygwin: init as a target toolchain

The old cygwin support used -pc-windows-cygnus as the config.  This is
supported by LLVM, but not by GNU. This will change it to -pc-cygwin,
which is more generally supported.

Because the kernel is now 'cygwin' rather than 'windows', isWindows will
return false. There are lots of different reasons isWindows is used in
nixpkgs, but in my experience they often have to do with posix
compatibility and don't apply to cygwin.

Co-authored-by: Brian McKenna <brian@brianmckenna.org>
This commit is contained in:
David McFarland
2025-09-27 13:29:44 -03:00
co-authored by Brian McKenna
parent a91a232d10
commit 39fd8e4adf
5 changed files with 31 additions and 20 deletions
+1 -2
View File
@@ -49,6 +49,7 @@ lib.runTests (
++ illumos
++ wasi
++ windows
++ cygwin
++ embedded
++ mmix
++ js
@@ -202,8 +203,6 @@ lib.runTests (
"x86_64-openbsd"
];
testwindows = mseteq windows [
"i686-cygwin"
"x86_64-cygwin"
"aarch64-windows"
"i686-windows"
"x86_64-windows"