[commit: ghc] wip/nfs-locking: Add CppOpts. (316ff4c)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:22:34 UTC 2017


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

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

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

commit 316ff4cb2e421831281e42b09fb90ba5dae2b239
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Jan 13 07:28:48 2015 +0000

    Add CppOpts.


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

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

diff --git a/src/Oracles/PackageData.hs b/src/Oracles/PackageData.hs
index 66a3f55..bf94713 100644
--- a/src/Oracles/PackageData.hs
+++ b/src/Oracles/PackageData.hs
@@ -19,6 +19,7 @@ data PackageData = Modules     FilePath
                  | Deps        FilePath
                  | DepKeys     FilePath
                  | Synopsis    FilePath
+                 | CppOpts     FilePath
 
 instance ShowArgs PackageData where
     showArgs packageData = do
@@ -30,6 +31,7 @@ instance ShowArgs PackageData where
                Deps        file -> ("DEPS"        , file, "" )
                DepKeys     file -> ("DEP_KEYS"    , file, "" )
                Synopsis    file -> ("SYNOPSIS"    , file, "" )
+               CppOpts     file -> ("CPP_OPTS"    , file, "" )
             fullKey = replaceSeparators '_' $ takeDirectory file ++ "_" ++ key
         res <- askOracle $ PackageDataKey (file, fullKey)
         return $ words $ case res of



More information about the ghc-commits mailing list