[commit: ghc] master: use projectVersion from DynFlags rather than cProjectVersion for versionedAppDir (6109b31)
git at git.haskell.org
git at git.haskell.org
Tue Apr 14 06:20:17 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6109b312cdd9dfe4bdad4030e0185dd67e6ec18d/ghc
>---------------------------------------------------------------
commit 6109b312cdd9dfe4bdad4030e0185dd67e6ec18d
Author: Luite Stegeman <stegeman at gmail.com>
Date: Tue Apr 14 01:13:27 2015 -0500
use projectVersion from DynFlags rather than cProjectVersion for versionedAppDir
Reviewed By: edsko, austin
Differential Revision: https://phabricator.haskell.org/D824
GHC Trac Issues: #10232
>---------------------------------------------------------------
6109b312cdd9dfe4bdad4030e0185dd67e6ec18d
compiler/main/DynFlags.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index bd20457..f3e3066 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -1021,7 +1021,7 @@ opt_lc dflags = sOpt_lc (settings dflags)
versionedAppDir :: DynFlags -> IO FilePath
versionedAppDir dflags = do
appdir <- getAppUserDataDirectory (programName dflags)
- return $ appdir </> (TARGET_ARCH ++ '-':TARGET_OS ++ '-':cProjectVersion)
+ return $ appdir </> (TARGET_ARCH ++ '-':TARGET_OS ++ '-':projectVersion dflags)
-- | The target code type of the compilation (if any).
--
More information about the ghc-commits
mailing list