From 3891ad77e35b31875c6fa5b44236f11e66b34448 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 26 Aug 2024 22:34:48 +0200 Subject: [PATCH] queue-runner: change Machine object creation to work around clang bug https://github.com/llvm/llvm-project/issues/106123 --- src/hydra-queue-runner/hydra-queue-runner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 7cd50877..b5f0032f 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -173,7 +173,7 @@ void State::parseMachines(const std::string & contents) using MaxJobs = std::remove_const::type; - auto machine = std::make_shared<::Machine>(nix::Machine { + auto machine = std::make_shared<::Machine>(::Machine {{ // `storeUri`, not yet used "", // `systemTypes`, not yet used @@ -194,7 +194,7 @@ void State::parseMachines(const std::string & contents) tokens[7] != "" && tokens[7] != "-" ? base64Decode(tokens[7]) : "", - }); + }}); machine->sshName = tokens[0]; machine->systemTypesSet = tokenizeString(tokens[1], ",");