aboutsummaryrefslogtreecommitdiff
path: root/lib/Distribution/Helper.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Distribution/Helper.hs')
-rw-r--r--lib/Distribution/Helper.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs
index 55bfbf7..e46293d 100644
--- a/lib/Distribution/Helper.hs
+++ b/lib/Distribution/Helper.hs
@@ -508,7 +508,11 @@ buildProjectTarget qe mu stage = do
SCV2 -> do
targets <- return $ case mu of
Nothing -> ["all"]
- Just Unit{uImpl} -> uiV2Components uImpl
+ Just Unit{uImpl} -> concat
+ [ if uiV2OnlyDependencies uImpl
+ then ["--only-dependencies"] else []
+ , uiV2Components uImpl
+ ]
case qeProjLoc of
ProjLocV2File {plCabalProjectFile} ->
[ "--project-file="++plCabalProjectFile