Skip to content

[llvm-3.8] Support GHCi and TH#200

Open
tmcdonell wants to merge 2 commits intobscarlet:llvm-3.8from
tmcdonell:llvm-3.8
Open

[llvm-3.8] Support GHCi and TH#200
tmcdonell wants to merge 2 commits intobscarlet:llvm-3.8from
tmcdonell:llvm-3.8

Conversation

@tmcdonell
Copy link

See comments in #199.

Enables llvm-general to be used out-of-the-box with GHCi and TemplateHaskell. Note that the LLVM shared library is only required if you use GHCi/TH; regular compiles work as usual. Since cabal dependencies can not specify flags, this also makes llvm-general easier to work with as a dependency.
extraGHCiLibs was introduced in Cabal-1.22. Before GHC-8.0 there is no direct way to test which wersion of the Cabal library we are compiling against, but we can work around this limitation with a little bit of TH trickery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant