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:
parent
5558652709
commit
7ccd946407
2 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue