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 ||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user