[rtems commit] build: Let the get-integer action return None
Sebastian Huber
sebh at rtems.org
Mon Oct 23 08:44:22 UTC 2023
Module: rtems
Branch: master
Commit: 8b6c64f9ec6dfdbe56d76c5b1681276659155333
Changeset: http://git.rtems.org/rtems/commit/?id=8b6c64f9ec6dfdbe56d76c5b1681276659155333
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 20 11:15:03 2023 +0200
build: Let the get-integer action return None
If used with the format-and-define action, this will result in an
undefined define.
---
wscript | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wscript b/wscript
index 65f90fc324..69732d4e17 100755
--- a/wscript
+++ b/wscript
@@ -999,8 +999,8 @@ class OptionItem(Item):
cic.add_option(name)
except configparser.NoOptionError:
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 vc
mailing list