[GHC] #11281: Way to run --make and -M simultaneously

#11281: Way to run --make and -M simultaneously -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- In some cases, users would like to build their projects `--make` and also print out dependency information `-M` (so that they can sanity check file lists, etc.) It shouldn't be too difficult to arrange for `--make` and `-M file` to mean, put the Makefile information in `file`. Cabal's request: https://github.com/haskell/cabal/issues/2982 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11281 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | -------------------------------------+------------------------------------- Changes (by ezyang): * keywords: => easy -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11281#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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): https://mail.haskell.org/pipermail/glasgow-haskell- users/2014-November/025452.html ("Discovery of source dependencies without --make") is relevant, although it culminated in a very different ticket: #9846 ("GHC --make should also look for .hi, not only for .hs"). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11281#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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
participants (1)
-
GHC