summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-11 11:33:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-11 11:36:58 +0200
commitd2d1fa18a93d39b79421ed205755fd6623b2153b (patch)
tree10e5ac61b77b2f816b5d67ae99ee47de9734eefc /wscript
parentbsps/zynqmp: Add locking around JFFS2 NAND adapter (diff)
downloadrtems-d2d1fa18a93d39b79421ed205755fd6623b2153b.tar.bz2
build: Use build context for custom commands
Revert duplicated listing of TEST_OPTIMIZATION_FLAGS. Close #4947.
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript14
1 files changed, 9 insertions, 5 deletions
diff --git a/wscript b/wscript
index 03c6ac1035..00b81b4874 100755
--- a/wscript
+++ b/wscript
@@ -307,7 +307,8 @@ class Item(object):
target = os.path.splitext(source)[0] + ".o"
bld(
asflags=self.substitute(bld, self.data["asflags"]),
- cppflags=self.substitute(bld, self.data["cppflags"]),
+ cppflags=bic.cppflags +
+ self.substitute(bld, self.data["cppflags"]),
features="asm_explicit_target asm c",
includes=bic.includes +
self.substitute(bld, self.data["includes"]),
@@ -320,8 +321,9 @@ class Item(object):
if target is None:
target = os.path.splitext(source)[0] + ".o"
bld(
- cflags=self.substitute(bld, self.data["cflags"]),
- cppflags=cppflags + self.substitute(bld, self.data["cppflags"]),
+ cflags=bic.cflags + self.substitute(bld, self.data["cflags"]),
+ cppflags=bic.cppflags + cppflags +
+ self.substitute(bld, self.data["cppflags"]),
features="c",
includes=bic.includes +
self.substitute(bld, self.data["includes"]),
@@ -336,8 +338,10 @@ class Item(object):
if target is None:
target = os.path.splitext(source)[0] + ".o"
bld(
- cppflags=cppflags + self.substitute(bld, self.data["cppflags"]),
- cxxflags=self.substitute(bld, self.data["cxxflags"]),
+ cppflags=bic.cppflags + cppflags +
+ self.substitute(bld, self.data["cppflags"]),
+ cxxflags=bic.cxxflags +
+ self.substitute(bld, self.data["cxxflags"]),
features="cxx",
includes=bic.includes +
self.substitute(bld, self.data["includes"]),