diff --git a/yesod-bin/GhcBuild.hs b/yesod-bin/GhcBuild.hs index d50c77ed..04410002 100644 --- a/yesod-bin/GhcBuild.hs +++ b/yesod-bin/GhcBuild.hs @@ -151,7 +151,9 @@ buildPackage' argv2 ld ar = do haskellish (f,Nothing) = looksLikeModuleName f || isHaskellSrcFilename f || '.' `notElem` f haskellish (_,Just phase) = -#if MIN_VERSION_ghc(7,4,0) +#if MIN_VERSION_ghc(7,8,3) + phase `notElem` [As True, As False, Cc, Cobjc, Cobjcpp, CmmCpp, Cmm, StopLn] +#elif MIN_VERSION_ghc(7,4,0) phase `notElem` [As, Cc, Cobjc, Cobjcpp, CmmCpp, Cmm, StopLn] #else phase `notElem` [As, Cc, CmmCpp, Cmm, StopLn] @@ -301,7 +303,11 @@ mode_flags = , Flag "E" (PassFlag (setMode (stopBeforeMode anyHsc))) , Flag "C" (PassFlag (\f -> do setMode (stopBeforeMode HCc) f addFlag "-fvia-C" f)) +#if MIN_VERSION_ghc(7,8,3) + , Flag "S" (PassFlag (setMode (stopBeforeMode (As True)))) +#else , Flag "S" (PassFlag (setMode (stopBeforeMode As))) +#endif , Flag "-make" (PassFlag (setMode doMakeMode)) , Flag "-interactive" (PassFlag (setMode doInteractiveMode)) , Flag "-abi-hash" (PassFlag (setMode doAbiHashMode)) diff --git a/yesod-bin/yesod-bin.cabal b/yesod-bin/yesod-bin.cabal index 24356f60..7b9408a9 100644 --- a/yesod-bin/yesod-bin.cabal +++ b/yesod-bin/yesod-bin.cabal @@ -1,5 +1,5 @@ name: yesod-bin -version: 1.2.10.1 +version: 1.2.10.2 license: MIT license-file: LICENSE author: Michael Snoyman