-
Niklas Hambuechen authored
This works around https://ghc.haskell.org/trac/ghc/ticket/9749 : GHC 7.8 (undocumentedly) changed the way in which ghc -M generated object file dependencies, lacking the underscore that older versions added automatically to the file names. It also requires a -dep-suffix for the plain object file (.o). This commit detects GHC 7.6 and older (7.7 is development only, has no release and is treated equal to 7.8), and adjusts the -M invocation appropriately for newer GHC versions. Signed-off-by: Niklas Hambuechen <niklash@google.com> Reviewed-by: Hrvoje Ribicic <riba@google.com> Cherry-picked-from: b78a2c30 Signed-off-by: Klaus Aehlig <aehlig@google.com> Reviewed-by: Petr Pudlak <pudlak@google.com>
3714c813