diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-11-18 10:39:28 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-11-18 10:39:28 +0100 |
commit | 128910ba23f586ba1765a137ecff23cfd22cff89 (patch) | |
tree | 2adc969d5ae2fa2f470000e9bbc7b8f8b0c3edd4 /src/libutil/experimental-features.cc | |
parent | f1ab082ac4f589a36a9eb0cd98d1cc235eedc419 (diff) |
Separate cgroup support from auto-uid-allocation
The new experimental feature 'cgroups' enables the use of cgroups for
all builds. This allows better containment and enables setting
resource limits and getting some build stats.
Diffstat (limited to 'src/libutil/experimental-features.cc')
-rw-r--r-- | src/libutil/experimental-features.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/experimental-features.cc b/src/libutil/experimental-features.cc index 0f05f3752..e0902971e 100644 --- a/src/libutil/experimental-features.cc +++ b/src/libutil/experimental-features.cc @@ -15,6 +15,7 @@ std::map<ExperimentalFeature, std::string> stringifiedXpFeatures = { { Xp::FetchClosure, "fetch-closure" }, { Xp::ReplFlake, "repl-flake" }, { Xp::AutoAllocateUids, "auto-allocate-uids" }, + { Xp::Cgroups, "cgroups" }, }; const std::optional<ExperimentalFeature> parseExperimentalFeature(const std::string_view & name) |