Skip to content

Commit 0006048

Browse files
authored
Use -threaded for iserv-proxy (#2385)
* Use `-threaded` for iserv-proxy Fixes #2361 @luite tracked the failure down: > It's an async IO call that fails, async and fdwait have some limitations on Windows. the threaded runtime doesn't use them * Disable threaded for aarch64 cross GHC 9.6.7
1 parent 26acfef commit 0006048

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

overlays/haskell.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,14 @@ final: prev: {
10531053
setupBuildFlags = final.lib.mkForce [];
10541054
};
10551055
}];
1056+
} // final.lib.optionalAttrs (
1057+
final.stdenv.hostPlatform.isAarch64
1058+
&& builtins.compareVersions final.buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.8" < 0) {
1059+
# The th-dlls test fails for aarch64 cross GHC 9.6.7 when the threaded rts is used
1060+
cabalProjectLocal = ''
1061+
package iserv-proxy
1062+
flags: -threaded
1063+
'';
10561064
} // final.lib.optionalAttrs (__compareVersions final.buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.10" > 0) {
10571065
cabalProjectLocal = ''
10581066
allow-newer: *:base, *:bytestring

0 commit comments

Comments
 (0)