queue-runner: change Machine object creation to work around clang bug

https://github.com/llvm/llvm-project/issues/106123
This commit is contained in:
Pierre Bourdon 2024-08-26 22:34:48 +02:00
parent 21fd1f8993
commit 3891ad77e3
Signed by untrusted user: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -173,7 +173,7 @@ void State::parseMachines(const std::string & contents)
using MaxJobs = std::remove_const<decltype(nix::Machine::maxJobs)>::type; using MaxJobs = std::remove_const<decltype(nix::Machine::maxJobs)>::type;
auto machine = std::make_shared<::Machine>(nix::Machine { auto machine = std::make_shared<::Machine>(::Machine {{
// `storeUri`, not yet used // `storeUri`, not yet used
"", "",
// `systemTypes`, not yet used // `systemTypes`, not yet used
@ -194,7 +194,7 @@ void State::parseMachines(const std::string & contents)
tokens[7] != "" && tokens[7] != "-" tokens[7] != "" && tokens[7] != "-"
? base64Decode(tokens[7]) ? base64Decode(tokens[7])
: "", : "",
}); }});
machine->sshName = tokens[0]; machine->sshName = tokens[0];
machine->systemTypesSet = tokenizeString<StringSet>(tokens[1], ","); machine->systemTypesSet = tokenizeString<StringSet>(tokens[1], ",");