lib.strings: remove duplicate cmake and meson assertions

These are already performed by cmakeOptionType and mesonOption - doing
them twice isn't necessary.
This commit is contained in:
Eman Resu
2026-06-24 17:16:56 -04:00
parent a709ca8240
commit 184d899ccf
+1 -8
View File
@@ -2199,7 +2199,6 @@ rec {
*/
cmakeBool =
condition: flag:
assert (lib.isString condition);
assert (lib.isBool flag);
cmakeOptionType "bool" condition (lib.toUpper (lib.boolToString flag));
@@ -2233,11 +2232,7 @@ rec {
:::
*/
cmakeFeature =
feature: value:
assert (lib.isString feature);
assert (lib.isString value);
cmakeOptionType "string" feature value;
cmakeFeature = feature: value: cmakeOptionType "string" feature value;
/**
Create a `"-D<feature>=<value>"` string that can be passed to typical Meson
@@ -2307,7 +2302,6 @@ rec {
*/
mesonBool =
condition: flag:
assert (lib.isString condition);
assert (lib.isBool flag);
mesonOption condition (lib.boolToString flag);
@@ -2344,7 +2338,6 @@ rec {
*/
mesonEnable =
feature: flag:
assert (lib.isString feature);
assert (lib.isBool flag);
mesonOption feature (if flag then "enabled" else "disabled");