summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs
diff options
context:
space:
mode:
authorStephanos Ioannidis <root@stephanos.io>2021-06-07 05:42:06 (GMT)
committerStephanos Ioannidis <root@stephanos.io>2021-06-07 10:53:28 (GMT)
commitfffa4c5aa5b5995ce88680170fb2288b10b05fbe (patch)
tree1f879b68ee8ece92e5720cf319c4228983975947 /scripts/build/companion_libs
parent3c637c1eec9fe05c48bcd40186c7831933c2d6f2 (diff)
gcc: Allow setting custom target CXXFLAGS
This commit adds two additional arguments (`cxxflags_for_target` and `extra_cxxflags_for_target`) for the gcc backend build function that can be used to specify custom target CXXFLAGS. By default, the target CXXFLAGS is set to the target CFLAGS. When `cxxflags_for_target` is specified however, it overrides that behaviour and allows setting different target CXXFLAGS from the target CFLAGS. The `extra_cxxflags_for_target` argument can be used to specify the extra target CXXFLAGS to be appended to the target CXXFLAGS. This is useful when it is necessary to append CXX-specific flags to the existing CFLAGS to be used as the target CXXFLAGS. A useful application of this is building full and nano versions of libstdc++ with different target CXXFLAGS as necessitated by `nano.specs`. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Diffstat (limited to 'scripts/build/companion_libs')
0 files changed, 0 insertions, 0 deletions