diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-05 17:45:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-05 17:45:22 +0200 |
commit | bb50c8931934d04dbf61bd245b4583f8c1ac4fd9 (patch) | |
tree | 47d4dfef0da6ac7b2bd9cde3336b12f57a6a14aa /src/libstore/machines.cc | |
parent | 465cb6824401541d82489e11b5223dbfd50bb132 (diff) |
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.
Diffstat (limited to 'src/libstore/machines.cc')
-rw-r--r-- | src/libstore/machines.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/machines.cc b/src/libstore/machines.cc index c1d904753..7491037b2 100644 --- a/src/libstore/machines.cc +++ b/src/libstore/machines.cc @@ -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] != "-"; }; |