summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuite Stegeman <stegeman@gmail.com>2015-04-14 01:13:27 -0500
committerAustin Seipp <austin@well-typed.com>2015-04-14 01:19:30 -0500
commit6109b312cdd9dfe4bdad4030e0185dd67e6ec18d (patch)
tree8fbb2816ececc0477ba33a1b49f12e4d71de241f
parentc327393314a27ea77716c25b9cf56d45960f7876 (diff)
downloadhaskell-6109b312cdd9dfe4bdad4030e0185dd67e6ec18d.tar.gz
use projectVersion from DynFlags rather than cProjectVersion for versionedAppDir
Reviewed By: edsko, austin Differential Revision: https://phabricator.haskell.org/D824 GHC Trac Issues: #10232
-rw-r--r--compiler/main/DynFlags.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index bd204574de..f3e3066b80 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).
--