Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yairchu/macos11-haskell-workaround
Make Haskell work on macOS again!
https://github.com/yairchu/macos11-haskell-workaround
Last synced: 23 days ago
JSON representation
Make Haskell work on macOS again!
- Host: GitHub
- URL: https://github.com/yairchu/macos11-haskell-workaround
- Owner: yairchu
- Created: 2020-12-09T12:15:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-11T17:35:05.000Z (almost 4 years ago)
- Last Synced: 2023-04-19T00:45:12.151Z (over 1 year ago)
- Language: C
- Size: 7.81 KB
- Stars: 32
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MacOS 11 Haskell Work-around
A work around for a bug in older GHCs (<= 8.10.3) on macOS 11 "Big Sur" (bug #18446).
Details at: https://gitlab.haskell.org/ghc/ghc/-/issues/18446
This work-around should allow using affected GHC versions in macOS 11.
Build:
clang -target x86_64-darwin -dynamiclib macos11ghcwa.c -o macos11ghcwa.dylib
Use:
DYLD_INSERT_LIBRARIES=/macos11ghcwa.dylib stack args
To test one can use (with and without the fix):
stack exec -- runghc --ghc-arg="-framework OpenGL" Test.hs
DYLD_INSERT_LIBRARIES=`pwd`/macos11ghcwa.dylib stack exec -- runghc --ghc-arg="-framework OpenGL" Test.hs