diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-02-27 15:32:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-02-28 08:36:47 +0100 |
commit | be81a223323ecabb21e3f0ec3df5c300bafc2f5a (patch) | |
tree | 2bd132fbf8f853561d6e4aa84b284ab240cdd820 | |
parent | powerpc: Use RTEMS_XCONCAT() (diff) | |
download | rtems-be81a223323ecabb21e3f0ec3df5c300bafc2f5a.tar.bz2 |
build: Fix script action
We have to use a custom dictionary to be able to set the "value" argument in
the exec() context.
-rwxr-xr-x | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1026,8 +1026,14 @@ class OptionItem(Item): return value def _script(self, conf, cic, value, arg): - exec(arg) - return value + local_variables = { + "self": self, + "conf": conf, + "cic": cic, + "value": value + } + exec(arg, None, local_variables) + return local_variables["value"] def _test_state_benchmark(self, conf, name): self._do_append_test_cppflags(conf, name, "-DTEST_STATE_BENCHMARK=1") |