Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
When building libraries, build c-sources separately for profiling. #1286
There is no need to do this for exes since they are always built in only one way.
One downside of this patch is that it increases the compilation time when building with '--enable-library-profiling'. An alternative solution would be to add a new field (e.g. 'c-sources-ffi') for non-Haskell sources that depend on the GHC "way".