diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-11-21 11:45:41 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-11-21 11:45:41 +0100 |
commit | 82d5cf2a76ec009fd94a925c22a5e099a0b7321b (patch) | |
tree | 6d61eb65260cee4a36139a0106a2ab1e06d1915d /src/libstore/build | |
parent | 653b32a78f4529daf67505aff1a6227ea1f4cd4e (diff) |
Fix macOS build
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index f273ebe8a..34f8ab5f1 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -149,11 +149,15 @@ void LocalDerivationGoal::killChild() void LocalDerivationGoal::killSandbox(bool getStats) { if (cgroup) { + #if __linux__ auto stats = destroyCgroup(*cgroup); if (getStats) { buildResult.cpuUser = stats.cpuUser; buildResult.cpuSystem = stats.cpuSystem; } + #else + abort(); + #endif } else if (buildUser) { |