[commit: ghc] wip/nfs-locking: Add buildPackageLibrary. (a325521)

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


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

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

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

commit a325521e7db63f1bda2b38f3e7988c364708ce43
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Jan 13 02:21:14 2015 +0000

    Add buildPackageLibrary.


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

a325521e7db63f1bda2b38f3e7988c364708ce43
 src/Package.hs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Package.hs b/src/Package.hs
index 2fd10f1..a3fcf89 100644
--- a/src/Package.hs
+++ b/src/Package.hs
@@ -3,6 +3,7 @@ module Package (packageRules) where
 import Package.Base
 import Package.Data
 import Package.Compile
+import Package.Library
 import Package.Dependencies
 
 -- See Package.Base for definitions of basic types
@@ -16,12 +17,13 @@ buildPackage :: Package -> TodoItem -> Rules ()
 buildPackage = buildPackageData
             <> buildPackageDependencies
             <> buildPackageCompile
+            <> buildPackageLibrary
 
 packageRules :: Rules ()
 packageRules = do
     -- TODO: control targets from commang line arguments
-    want [ "libraries/deepseq/dist-install/build/Control/DeepSeq.o"
-         , "libraries/deepseq/dist-install/build/Control/DeepSeq.p_o" ]
+    want [ "libraries/deepseq/dist-install/build/libHSdeeps_FT5iVCELxOr62eHY0nbvnU.a"
+         , "libraries/deepseq/dist-install/build/libHSdeeps_FT5iVCELxOr62eHY0nbvnU.p_a" ]
     forM_ packages $ \pkg -> do
         forM_ (pkgTodo pkg) $ \todoItem -> do
             buildPackage pkg todoItem



More information about the ghc-commits mailing list