- Install rosetta, command line tools, etc.
- install gnu tar, gnu coreutils and bash from brew.
- compile this dylib https://github.com/yairchu/macos11-haskell-workaround
- clone ghcjs 8.6 branch and submodules
- install ghc 8.6 and cabal-install 2.4 with ghcup
- Edit the ghcup ghc wrapper script to add the dylib to DYLD_INSERT_LIBRARIES before invoking ghc
- Edit the ./ghc/aclocal.m4 and remove the underscore before AC_
- Edit the ./utils/makePackages.sh to use the brew-installed bash
- Run the makePackages script
- Run cabal install, have a cup of tea
- It will put a bunch of broken symlinks into your bin folder, remove them and replace them with wrapper scripts that invoke GHC from your dist-new/build directory similar to ghcup, being sure to set topdir to your root ghcjs directory
- Run ghcjs-boot -s ./lib/boot --no-prof --no-haddock
- Upgrade cabal to a more sane version (And ghc too if you want)
- Compile your project with cabal build --ghcjs
Created
April 10, 2021 06:07
-
-
Save liamoc/b1dd2f4fe095962e231cc3ff176eb0a9 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment