From 7ccd9464077180f633e65c15906bdda707077e8c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Jun 2013 20:05:03 +0200 Subject: Don't set $preferLocalBuild and $requiredSystemFeatures in builders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With C++ std::map, doing a comparison like ‘map["foo"] == ...’ has the side-effect of adding a mapping from "foo" to the empty string if "foo" doesn't exist in the map. So we ended up setting some environment variables by accident. --- src/libstore/misc.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/misc.hh') diff --git a/src/libstore/misc.hh b/src/libstore/misc.hh index 6f90ebe5e4..144cb7f457 100644 --- a/src/libstore/misc.hh +++ b/src/libstore/misc.hh @@ -32,7 +32,7 @@ void queryMissing(StoreAPI & store, const PathSet & targets, PathSet & willBuild, PathSet & willSubstitute, PathSet & unknown, unsigned long long & downloadSize, unsigned long long & narSize); -bool willBuildLocally(Derivation & drv); +bool willBuildLocally(const Derivation & drv); } -- cgit 1.4.1