Merge pull request #105816 from alunduil/enableFeatureAs
lib/strings: fix examples for enableFeatureAs
This commit is contained in:
commit
0272df3208
@ -569,9 +569,9 @@ rec {
|
|||||||
standard GNU Autoconf scripts.
|
standard GNU Autoconf scripts.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
enableFeature true "shared" "foo"
|
enableFeatureAs true "shared" "foo"
|
||||||
=> "--enable-shared=foo"
|
=> "--enable-shared=foo"
|
||||||
enableFeature false "shared" (throw "ignored")
|
enableFeatureAs false "shared" (throw "ignored")
|
||||||
=> "--disable-shared"
|
=> "--disable-shared"
|
||||||
*/
|
*/
|
||||||
enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";
|
enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user