on iko/ghcjs-patch-master help sign in
Fix #916 using -w instead of --with-compiler (#922)
commit654063dd6a538929239beddcbb77e254513cd3f7 authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateWed 11 Nov 2020, 15:01 (6 years ago) parent61546a5
1 file changed+4−1
lib/call-cabal-project-to-nix.nix+4−1
lib/call-cabal-project-to-nix.nix+4−1
@@ -394,7 +394,10 @@ let
394394 # packages used by the solver (cached-index-state >= index-state-found).
395395 builtins.trace ("Using index-state: ${index-state-found}" + (if name == null then "" else " for " + name))
396396 index-state-found} \
397− --with-ghc=${ghc.targetPrefix}ghc \
397+ -w ${
398+ # We are using `-w` rather than `--with-ghc` here to override
399+ # the `with-compiler:` in the `cabal.project` file.
400+ ghc.targetPrefix}ghc \
398401 --with-ghc-pkg=${ghc.targetPrefix}ghc-pkg \
399402 --enable-tests \
400403 --enable-benchmarks \