ghcjs / ghcjs-boot

boot libraries for ghcjs - deprecated as of GHC 8.2
5 stars 30 forks source link

Compiling individual packages when developing ghcjs-boot #40

Closed matchwood closed 7 years ago

matchwood commented 7 years ago

I am currently trying to get ghcjs to work with stack lts-8.0. As part of this process I have had to update various packages in ghcjs-boot (eg base, directory) and then fix patches for them.

Is there a way to test whether these packages compile as I am developing? At the moment I am running ghcjs-boot --dev every time I make a change, but this is very slow. I was hoping I could replicate the boot script by copying the command /..path/cabal --config-file install ./boot/directory ./boot/filepath ... --with-compiler ../ghcjs but this fails with cannot find .../ghcjs_boot.completed - naturally enough because the compiler has not booted yet!

I haven't been able to find the magic in the boot script yet that allows the command to work when run from ghcjs-boot.

matchwood commented 7 years ago

Ah I should have read this https://github.com/ghcjs/ghcjs/blob/master/HACKING.markdown, specifically the section on Fixing boot problems