[commit: ghc] wip/nfs-locking: Add support for Alex, Happy and Hsc2Hs builders. (1e13a6e)

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


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

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

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

commit 1e13a6e1021c8354a86af9ea4cba7e3c2ce1bc65
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Sep 21 00:58:19 2015 +0100

    Add support for Alex, Happy and Hsc2Hs builders.


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

1e13a6e1021c8354a86af9ea4cba7e3c2ce1bc65
 src/Rules/Actions.hs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/Rules/Actions.hs b/src/Rules/Actions.hs
index 4285831..f261b4f 100644
--- a/src/Rules/Actions.hs
+++ b/src/Rules/Actions.hs
@@ -39,15 +39,18 @@ build = buildWithResources []
 
 interestingInfo :: Builder -> [String] -> [String]
 interestingInfo builder ss = case builder of
+    Alex     -> prefixAndSuffix 0 3 ss
     Ar       -> prefixAndSuffix 2 1 ss
-    Ld       -> prefixAndSuffix 4 0 ss
     Gcc _    -> prefixAndSuffix 0 4 ss
     GccM _   -> prefixAndSuffix 0 1 ss
     Ghc _    -> prefixAndSuffix 0 4 ss
+    GhcCabal -> prefixAndSuffix 3 0 ss
     GhcM _   -> prefixAndSuffix 1 1 ss
     GhcPkg _ -> prefixAndSuffix 3 0 ss
     Haddock  -> prefixAndSuffix 1 0 ss
-    GhcCabal -> prefixAndSuffix 3 0 ss
+    Happy    -> prefixAndSuffix 0 3 ss
+    Hsc2Hs   -> prefixAndSuffix 0 3 ss
+    Ld       -> prefixAndSuffix 4 0 ss
     _        -> ss
   where
     prefixAndSuffix n m list =



More information about the ghc-commits mailing list