[PATCH] build: Let the get-integer action return None

Chris Johns chrisj at rtems.org
Sat Oct 21 00:31:52 UTC 2023


OK

Thanks
Chris

On 20/10/2023 10:16 pm, Sebastian Huber wrote:
> If used with the format-and-define action, this will result in an
> undefined define.
> ---
>  wscript | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/wscript b/wscript
> index c8481d4fde..595dc09efd 100755
> --- a/wscript
> +++ b/wscript
> @@ -1011,6 +1011,8 @@ class OptionItem(Item):
>              value = self.default_value(conf.env.ENABLE)
>              if value is None:
>                  return value
> +        if not value:
> +                return None
>          try:
>              return eval(value)
>          except Exception as e:


More information about the devel mailing list