Make the location of the build directory in the sandbox configurable

This is mostly for use in the sandbox tests, since if the Nix store is
under /build, then we can't use /build as the build directory.
This commit is contained in:
Eelco Dolstra 2017-05-05 17:45:22 +02:00
parent 465cb68244
commit bb50c89319
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 12 additions and 8 deletions

View file

@ -55,7 +55,7 @@ void parseMachines(const std::string & s, Machines & machines)
if (sz < 1)
throw FormatError("bad machine specification %s", line);
auto isSet = [&](int n) {
auto isSet = [&](size_t n) {
return tokens.size() > n && tokens[n] != "" && tokens[n] != "-";
};