-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Invalid option `--js-lib-src=jsbits/animationFrame.js' #112
Comments
The full command line used by
|
I just ran into the very same issue... :-) It's confusing that the flag passed to
while the error reads
Also, |
Reverting |
I am very confused. It worked here:
|
Ok, it must be |
And this is the command line used by that version:
where oddly the |
If I undo haskell/cabal@6148cea selectively by applying this patch:
then I get the old, “working”, command line and it builds even with the newest Cabal. But that command line looks so wrong … I guess this is a GHCJS bug that was accidentally worked-around by Cabal, and now uncovered. |
Oh, and the error message is lying, because this patch does not work: index e043afd3d..f16399fd8 100644
--- a/Cabal/Distribution/Simple/GHCJS.hs
+++ b/Cabal/Distribution/Simple/GHCJS.hs
@@ -320,7 +320,7 @@ buildOrReplLib mReplFlags verbosity numJobs pkg_descr lbi lib clbi = do
ghcOptExtra =
[ "-link-js-lib" , getHSLibraryName uid
, "-js-lib-outputdir", libTargetDir ] ++
- concatMap (\x -> ["-js-lib-src",x]) jsSrcs
+ concatMap (\x -> ["--js-lib-src="++x]) jsSrcs
}
vanillaOptsNoJsLib = baseOpts `mappend` mempty {
ghcOptMode = toFlag GhcModeMake, oh why. |
Ok, it’s a GHCJS bug (reported here: ghcjs/ghcjs#678) and maybe Cabal will want to work around it (reported here: haskell/cabal#5442) |
I am building
ghcjs-base
as part of my dependencies. This worked a few weeks ago, but I am unsure what changed:I did upgrade
Cabal
, maybe that is the problem?The text was updated successfully, but these errors were encountered: