forked from lix-project/nix-eval-jobs
fix c++20 warnings
This commit is contained in:
parent
cace652bff
commit
9e8320dbd6
|
@ -84,11 +84,11 @@ struct MyArgs : MixEvalArgs, MixCommonArgs {
|
||||||
.labels = {"path"},
|
.labels = {"path"},
|
||||||
.handler = {&gcRootsDir}});
|
.handler = {&gcRootsDir}});
|
||||||
|
|
||||||
addFlag(
|
addFlag({.longName = "workers",
|
||||||
{.longName = "workers",
|
|
||||||
.description = "number of evaluate workers",
|
.description = "number of evaluate workers",
|
||||||
.labels = {"workers"},
|
.labels = {"workers"},
|
||||||
.handler = {[=](std::string s) { nrWorkers = std::stoi(s); }}});
|
.handler = {
|
||||||
|
[=, this](std::string s) { nrWorkers = std::stoi(s); }}});
|
||||||
|
|
||||||
addFlag(
|
addFlag(
|
||||||
{.longName = "max-memory-size",
|
{.longName = "max-memory-size",
|
||||||
|
@ -96,7 +96,7 @@ struct MyArgs : MixEvalArgs, MixCommonArgs {
|
||||||
"maximum evaluation memory size (4GiB per worker by default)",
|
"maximum evaluation memory size (4GiB per worker by default)",
|
||||||
.labels = {"size"},
|
.labels = {"size"},
|
||||||
.handler = {
|
.handler = {
|
||||||
[=](std::string s) { maxMemorySize = std::stoi(s); }}});
|
[=, this](std::string s) { maxMemorySize = std::stoi(s); }}});
|
||||||
|
|
||||||
addFlag({.longName = "flake",
|
addFlag({.longName = "flake",
|
||||||
.description = "build a flake",
|
.description = "build a flake",
|
||||||
|
|
Loading…
Reference in a new issue