about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-02T12·25+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-02T14·02+0200
commit064816ab98e7a230b6e9f4071353f5172e70cf03 (patch)
treeeb781b84958ee558a10777d8a92833764ae1ba92 /src/libstore/build.cc
parent812c0dfbe24c8fe93992f77abbf1e5a975ea42f4 (diff)
Respect build-use-substitutes
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 9316c069eaa0..f232fe86a967 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3107,7 +3107,7 @@ void SubstitutionGoal::init()
     if (settings.readOnlyMode)
         throw Error(format("cannot substitute path ‘%1%’ - no write access to the Nix store") % storePath);
 
-    subs = getDefaultSubstituters();
+    subs = settings.useSubstitutes ? getDefaultSubstituters() : std::list<ref<Store>>();
 
     tryNext();
 }