Commit 459f7c6e authored by Ben Gamari's avatar Ben Gamari 🐢

hadrian: Drop empty arguments from target list

Fixes #17748.
parent 92e15a37
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment