summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Setup.hs b/Setup.hs
index 83a4dc72e..87aab235b 100644
--- a/Setup.hs
+++ b/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