diff options
author | Jack Lloyd <[email protected]> | 2019-02-05 18:33:43 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-02-05 18:33:43 -0500 |
commit | 52bf025fa4aaf4b55f8ad3673dfc47255aed0ea4 (patch) | |
tree | b01d33c701e8022d325b47bd850ee9debcec96c7 /configure.py | |
parent | 141cc978e73e8953a7f74ae7e616cc6109c3d244 (diff) |
Add --extra-cxxflags option
GH #1826
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.py b/configure.py index 4ba34a947..c20327c42 100755 --- a/configure.py +++ b/configure.py @@ -309,13 +309,16 @@ def process_command_line(args): # pylint: disable=too-many-locals,too-many-state target_group.add_option('--cc-bin', dest='compiler_binary', metavar='BINARY', help='set path to compiler binary') - target_group.add_option('--cc-abi-flags', metavar='FLAG', default='', + target_group.add_option('--cc-abi-flags', metavar='FLAGS', default='', help='set compiler ABI flags') - target_group.add_option('--cxxflags', metavar='FLAG', default=None, - help='set compiler flags') + target_group.add_option('--cxxflags', metavar='FLAGS', default=None, + help='override all compiler flags') - target_group.add_option('--ldflags', metavar='FLAG', + target_group.add_option('--extra-cxxflags', metavar='FLAGS', default=None, + help='set extra compiler flags') + + target_group.add_option('--ldflags', metavar='FLAGS', help='set linker flags', default=None) target_group.add_option('--ar-command', dest='ar_command', metavar='AR', default=None, @@ -1314,6 +1317,9 @@ class CompilerInfo(InfoObject): # pylint: disable=too-many-instance-attributes if not (options.debug_mode or sanitizers_enabled): yield self.cpu_flags_no_debug[options.arch] + if options.extra_cxxflags: + yield options.extra_cxxflags + return (' '.join(gen_flags(with_debug_info, enable_optimizations))).strip() @staticmethod |