1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

Don't set $preferLocalBuild and $requiredSystemFeatures in builders

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.
This commit is contained in:
Eelco Dolstra 2013-06-20 20:05:03 +02:00
parent 5558652709
commit 7ccd946407
2 changed files with 15 additions and 8 deletions

View file

@ -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);
}