diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-11 11:33:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-11 11:36:58 +0200 |
commit | d2d1fa18a93d39b79421ed205755fd6623b2153b (patch) | |
tree | 10e5ac61b77b2f816b5d67ae99ee47de9734eefc /wscript | |
parent | bsps/zynqmp: Add locking around JFFS2 NAND adapter (diff) | |
download | rtems-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-x | wscript | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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"]), |