1
0
forked from GitHub/gf-core

Setup.hs: avoid a problem with Cabal-1.18

In Cabal-1.18, the build command takes some new arguments. The Setup.hs script
should not die if these are present.
This commit is contained in:
hallgren
2013-11-25 20:03:57 +00:00
parent 9541668f76
commit cb27ed0a67

View File

@@ -120,9 +120,9 @@ checkRGLArgs args = do
let args' = filter (\arg -> not (arg `elem` all_modes || let args' = filter (\arg -> not (arg `elem` all_modes ||
rgl_prefix `isPrefixOf` arg || rgl_prefix `isPrefixOf` arg ||
langs_prefix `isPrefixOf` arg)) args langs_prefix `isPrefixOf` arg)) args
if null args' unless (null args') $
then return emptyHookedBuildInfo putStrLn $ "Unrecognised flags: " ++ intercalate ", " args'
else die $ "Unrecognised flags: " ++ intercalate ", " args' return emptyHookedBuildInfo
buildRGL args flags pkg lbi = do buildRGL args flags pkg lbi = do
let cmds = getRGLCommands args let cmds = getRGLCommands args