on iko/ghcjs-patch-master help sign in
Pass --via-asm to hsc2hs
e5f55f5Moritz Angermann
builder/comp-builder.nix+1−1
@@ -119,7 +119,7 @@ let
119 "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
119 "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
120 "--with-hsc2hs=${ghc.targetPrefix}hsc2hs"
120 "--with-hsc2hs=${ghc.targetPrefix}hsc2hs"
121 ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
121 ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
122− ["--hsc2hs-option=--cross-compile"]
122+ map (arg: "--hsc2hs-option=" + arg) ["--cross-compile" "--via-asm"]
123 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}"
123 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}"
124 ) ++ component.configureFlags
124 ) ++ component.configureFlags
125 );
125 );