NICTA / cplusplus-th

C++ Foreign Import Generation
http://hackage.haskell.org/package/cplusplus-th
BSD 3-Clause "New" or "Revised" License
34 stars 0 forks source link

Builds the cbits twice #2

Open singpolyma opened 9 years ago

singpolyma commented 9 years ago

This package builds the cbits once using the custom rule with clang++ and then cabal builds them again later with ghc (which is the version actually used in the library output).

mxswd commented 9 years ago

It could probably use the cabal ghc program, so the setup.hs C++ builds with the same ghc the rest of the project builds with (instead of clang++). Currently, with cabal, I have not found a work around in getting the object files other than seperatly compiling them. If you can think of a way that would be awesome.

singpolyma commented 9 years ago

This is related to an issue I'm having with Cabal. I'll try to get a proposal of some kind together, maybe