From cb263a33b9a14c8e99018af663e02b95e66659bd Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 May 2023 22:35:27 +0200 Subject: [PATCH] libutil: enable Xp::Flakes, Xp::NixCommand and Xp::ReplFlake by default --- src/libutil/config.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/libutil/config.cc b/src/libutil/config.cc index 085a884dc..df4975a1f 100644 --- a/src/libutil/config.cc +++ b/src/libutil/config.cc @@ -477,6 +477,17 @@ static GlobalConfig::Register rSettings(&experimentalFeatureSettings); bool ExperimentalFeatureSettings::isEnabled(const ExperimentalFeature & feature) const { + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wswitch-enum" + switch (feature) { + case ExperimentalFeature::Flakes: + case ExperimentalFeature::NixCommand: + case ExperimentalFeature::ReplFlake: + return true; + default: + break; + } + #pragma GCC diagnostic pop auto & f = experimentalFeatures.get(); return std::find(f.begin(), f.end(), feature) != f.end(); }