Fix compiler invocation for GHC >= 7.8
GHC 7.8 switched to dynamic linking being used for ghci, which requires that .so file are being built for modules that are loaded for TH. For this reason, GHC >= 7.8 has a -dynamic-too flag, which we now use. However, -dynamic-too must not be enabled for profiling builds, which is why this commit introduces a HFLAGS_NOPROF variable (currently only containing -dynamic-too) that must be passed to all GHC invocations that are not creating profiling output. Signed-off-by:Niklas Hambuechen <niklash@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
Please register or sign in to comment