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:
6
Setup.hs
6
Setup.hs
@@ -120,9 +120,9 @@ checkRGLArgs args = do
|
||||
let args' = filter (\arg -> not (arg `elem` all_modes ||
|
||||
rgl_prefix `isPrefixOf` arg ||
|
||||
langs_prefix `isPrefixOf` arg)) args
|
||||
if null args'
|
||||
then return emptyHookedBuildInfo
|
||||
else die $ "Unrecognised flags: " ++ intercalate ", " args'
|
||||
unless (null args') $
|
||||
putStrLn $ "Unrecognised flags: " ++ intercalate ", " args'
|
||||
return emptyHookedBuildInfo
|
||||
|
||||
buildRGL args flags pkg lbi = do
|
||||
let cmds = getRGLCommands args
|
||||
|
||||
Reference in New Issue
Block a user