diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-01-26 13:15:40 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-02-14 10:16:37 -0500 |
commit | 459f7c6e29eed46f8a5be8fac02c45450080a67c (patch) | |
tree | 19ccff84d29969a8d11178fdfc7d22c2bff53008 /hadrian | |
parent | 92e15a379a675f14667d7b80db608c84e58aa0a8 (diff) | |
download | haskell-459f7c6e29eed46f8a5be8fac02c45450080a67c.tar.gz |
hadrian: Drop empty arguments from target list
Fixes #17748.
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/src/Main.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs index 7e8c593453..50a53afd94 100644 --- a/hadrian/src/Main.hs +++ b/hadrian/src/Main.hs @@ -82,7 +82,7 @@ main = do Rules.toolArgsTarget shakeArgsWith options CommandLine.optDescrs $ \_ targets -> do - let targets' = removeKVs targets + let targets' = filter (not . null) $ removeKVs targets Environment.setupEnvironment return . Just $ if null targets' then rules |