packaging: disable LTO on cygwin

This was already done for windows, and it fails in the same way.
This commit is contained in:
David McFarland
2025-12-20 21:25:20 -04:00
parent b6dd17d6f2
commit ce16d6fdd3

View File

@@ -133,7 +133,7 @@ let
+
lib.optionalString
(
!stdenv.hostPlatform.isWindows
!(stdenv.hostPlatform.isWindows || stdenv.hostPlatform.isCygwin)
# build failure
&& !stdenv.hostPlatform.isStatic
# LTO breaks exception handling on x86-64-darwin.