on iko/ghcjs-patch-master help sign in
`--via-asm` only on windows
373ac25Moritz Angermann
builder/comp-builder.nix+1−1
@@ -170,7 +170,7 @@ let
170 ++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
170 ++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
171 ++ lib.optional (static) "--enable-static"
171 ++ lib.optional (static) "--enable-static"
172 ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
172 ++ 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"])
174 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}" )
174 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}" )
175 ++ component.configureFlags
175 ++ component.configureFlags
176 );
176 );