Pass --via-asm to hsc2hs
commite5f55f5e82fdea46b7435b9a46a5f97b8cba2aba
authorMoritz Angermann <moritz.angermann@gmail.com>
dateMon 26 Nov 2018, 17:26 (8 years ago)
parent9151dff
builder/comp-builder.nix+1−1
@@ -119,7 +119,7 @@ let
119119 "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
120120 "--with-hsc2hs=${ghc.targetPrefix}hsc2hs"
121121 ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
122− ["--hsc2hs-option=--cross-compile"]
122+ map (arg: "--hsc2hs-option=" + arg) ["--cross-compile" "--via-asm"]
123123 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}"
124124 ) ++ component.configureFlags
125125 );