aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/worker.cc
diff options
context:
space:
mode:
authorArtemis Tosini <lix@artem.ist>2024-05-12 21:09:26 +0000
committerjade <lix@jade.fyi>2024-06-23 03:33:07 +0000
commit12f5d27363316df8e04af1e2e376c39588e12057 (patch)
tree2605bc59d499c851f169678701e9827db180e366 /src/libstore/build/worker.cc
parentda4e46dd1fc04067b5ba4bc16dd68134fa7efad2 (diff)
libstore: Start creating LocalDerivationGoal subclasses
LocalDerivationGoal includes a large number of low-level sandboxing primitives for Darwin and Linux, intermingled with ifdefs. Start creating platform-specific classes to make it easier to add new platforms and review platform-specific code. This change only creates support infrastructure and moves two function, more functions will be moved in future changes. Change-Id: I9fc29fa2a7345107d4fc96c46fa90b4eabf6bb89
Diffstat (limited to 'src/libstore/build/worker.cc')
-rw-r--r--src/libstore/build/worker.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc
index 04be0da99..a7a298c34 100644
--- a/src/libstore/build/worker.cc
+++ b/src/libstore/build/worker.cc
@@ -65,8 +65,8 @@ std::shared_ptr<DerivationGoal> Worker::makeDerivationGoal(const StorePath & drv
{
return makeDerivationGoalCommon(drvPath, wantedOutputs, [&]() -> std::shared_ptr<DerivationGoal> {
return !dynamic_cast<LocalStore *>(&store)
- ? std::make_shared</* */DerivationGoal>(drvPath, wantedOutputs, *this, buildMode)
- : std::make_shared<LocalDerivationGoal>(drvPath, wantedOutputs, *this, buildMode);
+ ? std::make_shared<DerivationGoal>(drvPath, wantedOutputs, *this, buildMode)
+ : LocalDerivationGoal::makeLocalDerivationGoal(drvPath, wantedOutputs, *this, buildMode);
});
}
@@ -76,8 +76,8 @@ std::shared_ptr<DerivationGoal> Worker::makeBasicDerivationGoal(const StorePath
{
return makeDerivationGoalCommon(drvPath, wantedOutputs, [&]() -> std::shared_ptr<DerivationGoal> {
return !dynamic_cast<LocalStore *>(&store)
- ? std::make_shared</* */DerivationGoal>(drvPath, drv, wantedOutputs, *this, buildMode)
- : std::make_shared<LocalDerivationGoal>(drvPath, drv, wantedOutputs, *this, buildMode);
+ ? std::make_shared<DerivationGoal>(drvPath, drv, wantedOutputs, *this, buildMode)
+ : LocalDerivationGoal::makeLocalDerivationGoal(drvPath, drv, wantedOutputs, *this, buildMode);
});
}