summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-10-20 11:15:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-10-23 11:10:17 +0200
commit8b6c64f9ec6dfdbe56d76c5b1681276659155333 (patch)
tree3fe53f98d78540e0e865284adb3fb3c1d8b169cc /wscript
parentsparc: Fix move of CPU counter implementation (diff)
downloadrtems-8b6c64f9ec6dfdbe56d76c5b1681276659155333.tar.bz2
build: Let the get-integer action return None
If used with the format-and-define action, this will result in an undefined define.
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript4
1 files 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: