-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default to enable-shared for ghc 7.8 #85
Comments
I asked Austin (thoughtpolice) on IRC and he's got a pretty good explanation (or at least the start of one )
|
Hey, I'm having the same problem. How to you install with *I actually did |
@CRogers cabal install -fshared-llvm |
Thanks, |
the best part is you should be able to use llvm-general in ghci now! test some toy trivial code and sanity check it works for you please (eg have clang output the llvm ir asm or bitcode, read it in with llvm-general, then pretty print it as a haskell ast) |
linker errors happen in ghci / etc unless llvm-general is built with -fenable-shared on my machine
eg
if I build with enable-shared, I can use llvm-general in ghci pretty easily!
such as the following thing where I used clang to emit llvm asm, parsed it in with llvm, converted the module from LLVM's module model to llvm-generals, then printed it in the ghci prompt
https://gist.github.com/cartazio/8748569
The text was updated successfully, but these errors were encountered: