[GHC] #9500: Allow GHC defaults to be modified with an environment variable

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Easy (less than 1 | Type of failure: hour) | None/Unknown Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- I wanted to do this to turn -fsimple-list-literals on and off for NoFib without editing a million makefiles or recompiling GHC, but I bet there are other reasons. GHC's validate should probably prompt the user to verify they want to continue of the variable is set, and should issue a loud warning at the very end indicating what options were set by the variable. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by carter): Might be simpler to just patch NoFib to read off an ENV Var for additional flags, have you dug into doing that? I'm happy to help you figure out a patch for that. Much simpler (and safer) than patching ghc to read off env vars always -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by carter): I think https://github.com/ghc/nofib/blob/master/mk/ghc-opts.mk is all you need to modify to change the flags passed everywhere -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature | Status: new request | Milestone: Priority: lowest | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by dfeuer): * priority: normal => lowest -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature | Status: new request | Milestone: Priority: lowest | Version: 7.8.2 Component: Build | Keywords: System | Architecture: Unknown/Multiple Resolution: | Difficulty: Easy (less than 1 Operating System: | hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * component: Compiler => Build System Comment: Someone who understands the build system might be able to tell you. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9500: Allow GHC defaults to be modified with an environment variable -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature request | Status: closed Priority: lowest | Milestone: Component: Build System | Version: 7.8.2 Resolution: fixed | 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: => fixed Comment: Replying to [comment:4 thomie]:
Someone who understands the build system might be able to tell you. That would be me now.
The [https://ghc.haskell.org/trac/ghc/wiki/Building/RunningNoFib documentation] says to use `EXTRA_HC_OPTS`. I checked, and that should indeed work. Please reopen if it doesn't. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9500#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC