summaryrefslogtreecommitdiff
path: root/hadrian/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Main.hs')
-rw-r--r--hadrian/src/Main.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs
index 63001fe53b..804144aeb1 100644
--- a/hadrian/src/Main.hs
+++ b/hadrian/src/Main.hs
@@ -4,6 +4,7 @@ import System.Directory (getCurrentDirectory)
import Development.Shake
import Hadrian.Expression
import Hadrian.Utilities
+import Settings.Parser
import qualified Base
import qualified CommandLine
@@ -79,7 +80,8 @@ main = do
Rules.toolArgsTarget
shakeArgsWith options CommandLine.optDescrs $ \_ targets -> do
+ let targets' = removeKVs targets
Environment.setupEnvironment
- return . Just $ if null targets
+ return . Just $ if null targets'
then rules
- else want targets >> withoutActions rules
+ else want targets' >> withoutActions rules