[GHC] #11281: Way to run --make and -M simultaneously
GHC
ghc-devs at haskell.org
Fri Jan 8 14:56:42 UTC 2016
#11281: Way to run --make and -M simultaneously
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords: easy
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by thomie):
Equivalent `gcc` (5.2.0) flag:
{{{
-MD -MD is equivalent to -M -MF file, except that -E is not
implied.
The driver determines file based on whether an -o option is
given. If it is, the driver uses its argument but with a
suffix
of .d, otherwise it takes the name of the input file, removes
any
directory components and suffix, and applies a .d suffix.
If -MD is used in conjunction with -E, any -o switch is
understood to specify the dependency output file, but if used
without -E, each -o is understood to specify a target object
file.
Since -E is not implied, -MD can be used to generate a
dependency
output file as a side-effect of the compilation process.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11281#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list