Skip to content

Commit 373ac25

Browse files
committed
--via-asm only on windows
1 parent e68e317 commit 373ac25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let
170170
++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
171171
++ lib.optional (static) "--enable-static"
172172
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
173-
map (arg: "--hsc2hs-option=" + arg) ["--cross-compile" "--via-asm"]
173+
map (arg: "--hsc2hs-option=" + arg) (["--cross-compile"] ++ lib.optionals (stdenv.hostPlatform.isWindows) ["--via-asm"])
174174
++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}" )
175175
++ component.configureFlags
176176
);

0 commit comments

Comments
 (0)