[GHC] #9744: Make program name and project version configurable

#9744: Make program name and project version configurable -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: feature request | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.9 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- GHC uses `cProjectVersion` in a few places and `ghc` is hardcoded as the program name. This is used for example for determining the location of the user package database (`getAppUserDataDirectory "ghc"`) and the names of dynamic libraries. I've been working around this for GHCJS, but it requires copying quite a bit of code. I have a patch that adds the program name and version to `Settings` that I'll submit once I've tested GHCJS with HEAD. My patch just allows these settings to be changed by GHC API clients. However, we could also make GHC itself read its own values from the `settings` file. This way we could add a version tag to a GHC installation without recompiling, keeping its packages and package databases separate from existing ones. Let me know if there's any interest in this and I'll add it to the patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9744 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9744: Make program name and project version configurable -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: feature | Status: new request | Milestone: 7.10.1 Priority: normal | Version: 7.9 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by luite): Side note: Hardcoded constants are also used for the target platform, while the actual target is configurable through `DynFlags`/`Settings`. Unfortunately properly printing a platform triple appears to be a bit hairy. I don't need this for GHCJS, so I've left it out so far for this reason. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9744#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9744: Make program name and project version configurable -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: feature | Status: new request | Milestone: 7.10.1 Priority: normal | Version: 7.9 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D496 | -------------------------------------+------------------------------------- Changes (by thomie): * differential: => Phab:D496 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9744#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9744: Make program name and project version configurable
-------------------------------------+-------------------------------------
Reporter: luite | Owner: luite
Type: feature | Status: new
request | Milestone: 7.10.1
Priority: normal | Version: 7.9
Component: Compiler | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: Phab:D496 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#9744: Make program name and project version configurable -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: feature | Status: closed request | Milestone: 7.12.1 Priority: normal | Version: 7.9 Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D496 | -------------------------------------+------------------------------------- Changes (by luite): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9744#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC