You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Variables/PackageVariable.py only compares *default* against ENABLE_STRINGS #4702
If SCons.Variables.PackageVariable.PackageVariable is initialised with a default "false" string, it will not be possible to enable the key by using a true boolean nor true string.
passing scons 'icu=yes' on the command line will not enable the key, only passing a /path will enable the key.
Moreover passing 'icu=yes' will result in a build failure:
scons: *** Path does not exist for variable 'icu': 'no'
This is because the PackageVariable_converter only compares default against ENABLE_STRINGS and so when a cli true value is passed the default value gets returned, however as a string.
The PackageVariable_validator will then parse this default value that should have been a bool as a string and will expect it to be a path.
Activity
Fix Variables.PackageVariable with bool default string