[commit: ghc] wip/nfs-locking: Add CcArgs and CSrcs keys to PackageData. (316d98e)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:53:48 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/316d98ef5bf6a5e43c649f5a7269661ff304be96/ghc

>---------------------------------------------------------------

commit 316d98ef5bf6a5e43c649f5a7269661ff304be96
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Jan 17 23:14:03 2015 +0000

    Add CcArgs and CSrcs keys to PackageData.


>---------------------------------------------------------------

316d98ef5bf6a5e43c649f5a7269661ff304be96
 src/Oracles/PackageData.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Oracles/PackageData.hs b/src/Oracles/PackageData.hs
index 192896c..0581e82 100644
--- a/src/Oracles/PackageData.hs
+++ b/src/Oracles/PackageData.hs
@@ -31,6 +31,8 @@ data MultiPackageData = Modules     FilePath
                       | DepNames    FilePath
                       | CppArgs     FilePath
                       | HsArgs      FilePath
+                      | CcArgs      FilePath
+                      | CSrcs       FilePath
 
 newtype PackageDataKey = PackageDataKey (FilePath, String)
                         deriving (Show, Typeable, Eq, Hashable, Binary, NFData)
@@ -59,6 +61,8 @@ instance ShowArgs MultiPackageData where
                DepNames    path -> ("DEP_NAMES"   , path, "" )
                CppArgs     path -> ("CPP_OPTS"    , path, "" )
                HsArgs      path -> ("HC_OPTS"     , path, "" )
+               CcArgs      path -> ("CC_OPTS"     , path, "" )
+               CSrcs       path -> ("C_SRCS"      , path, "" )
             fullKey = replaceSeparators '_' $ path ++ "_" ++ key
             pkgData = path </> "package-data.mk"
         res <- askOracle $ PackageDataKey (pkgData, fullKey)



More information about the ghc-commits mailing list