[GHC] #10821: Add a flag to avoid generation of .hi, .o, .dyn_* files

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- When running tests involving GHC (eg. when developing GHC plugins), it is cumbersome and frustrating to have to constantly clean up the .hi, .o, and .dyn_* files that GHC leaves behind. There should be a way to tell GHC not to generate these files at all, or if they're needed during the build process, to clean them up on its own once it's finished with them. (Apologies if this is a duplicate issue -- "hi" and "o" are difficult terms to search on the bug tracker.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Description changed by spinda: Old description:
When running tests involving GHC (eg. when developing GHC plugins), it is cumbersome and frustrating to have to constantly clean up the .hi, .o, and .dyn_* files that GHC leaves behind. There should be a way to tell GHC not to generate these files at all, or if they're needed during the build process, to clean them up on its own once it's finished with them.
(Apologies if this is a duplicate issue -- "hi" and "o" are difficult terms to search on the bug tracker.)
New description: When running tests involving GHC (eg. when developing GHC plugins), it is cumbersome and frustrating to have to constantly clean up the .hi, .o, and .dyn_* files that GHC leaves behind. There should be a way to tell GHC not to generate these files at all, or if they're really needed during the build process, to clean them up on its own once it's finished with them. (Apologies if this is a duplicate issue -- "hi" and "o" are difficult terms to search on the bug tracker.) -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by thomie): You could use `ghc -outputdir=/tmp`, or one of the flags in https://downloads.haskell.org/~ghc/7.10.2/docs/html/users_guide/separate- compilation.html#options-output. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by ezyang): Note that actually just dumping them all in `/tmp` is not such a good idea, you should make a new temporary directory for each compilation run. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => invalid Comment: What ezyang said. We don't need any new flag though. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10821: Add a flag to avoid generation of .hi, .o, .dyn_* files -------------------------------------+------------------------------------- Reporter: spinda | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #2258, #4114 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * related: => #2258, #4114 Comment: #2258 and #4114 are related. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10821#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC