Merge pull request #275 from michalt/compilermode/1
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 23 Jul 2016 18:03:13 +0000 (20:03 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Jul 2016 18:03:13 +0000 (20:03 +0200)
Split CompilerMode for GHC and CC

1  2 
src/Rules/Dependencies.hs

@@@ -22,9 -20,8 +22,9 @@@ buildPackageDependencies rs context@Con
          fmap (path ++)
              [ "//*.c.deps", "//*.cmm.deps", "//*.S.deps" ] |%> \out -> do
                  let src = dep2src context out
 +                when (package == integerGmp) (need [gmpLibraryH])
                  need [src]
-                 build $ Target context (Cc FindDependencies stage) [src] [out]
+                 build $ Target context (Cc FindCDependencies stage) [src] [out]
  
          hDepFile %> \out -> do
              srcs <- haskellSources context