summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-27 15:45:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-04 08:29:52 +0200
commit42da08dd9d0fa34b047625e570049e2546e17acf (patch)
tree89836af9f49627cc99dc1cd5e37a48a1de84919e /wscript
parentbuild: Improve value substitution (diff)
downloadrtems-42da08dd9d0fa34b047625e570049e2546e17acf.tar.bz2
build: Add cppflags, cflags, cxxflags to groups
Propagate the group defined cppflags, cflags, and cxxflags from parent groups to child items through the build item context. Update #4670.
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index 6ad230aca5..9894dcd7fd 100755
--- a/wscript
+++ b/wscript
@@ -520,9 +520,9 @@ class GroupItem(Item):
def prepare_build(self, bld, bic):
return BuildItemContext(
bic.includes + self.substitute(bld, self.data["includes"]),
- bic.cppflags,
- bic.cflags,
- bic.cxxflags,
+ bic.cppflags + self.substitute(bld, self.data["cppflags"]),
+ bic.cflags + self.substitute(bld, self.data["cflags"]),
+ bic.cxxflags + self.substitute(bld, self.data["cxxflags"]),
self.data["use-before"] + bic.use + self.data["use-after"],
bic.ldflags + self.substitute(bld, self.data["ldflags"]),
bic.objects,