diff options
author | Simon Warta <[email protected]> | 2017-04-23 09:15:33 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-25 00:38:04 +0200 |
commit | 66c2438a036c53cdf2f7ba095eacb9cd29b519df (patch) | |
tree | 367c695cb71fae7d13b2701964a1025dac923965 /configure.py | |
parent | bd6aa839deb428fb2b846b804a1baddbc8a1244a (diff) |
Remove unused with_visibility
"Both flags can be removed, I think they were added in 8b2e5f9 because
at the time some versions of GCC we supported (<= 3.4) did not support
the visibility flags so there needed to be some way to disable it."
Closes #1020
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/configure.py b/configure.py index f5653428c..2d47b7ff7 100755 --- a/configure.py +++ b/configure.py @@ -377,12 +377,6 @@ def process_command_line(args): # pylint: disable=too-many-locals build_group.add_option('--without-sphinx', action='store_false', dest='with_sphinx', help=optparse.SUPPRESS_HELP) - build_group.add_option('--with-visibility', action='store_true', - default=None, help=optparse.SUPPRESS_HELP) - - build_group.add_option('--without-visibility', action='store_false', - dest='with_visibility', help=optparse.SUPPRESS_HELP) - build_group.add_option('--with-doxygen', action='store_true', default=False, help='Use Doxygen') @@ -1045,13 +1039,12 @@ class CompilerInfo(InfoObject): # pylint: disable=too-many-instance-attributes def flag_builder(): if options.build_shared_lib: yield self.shared_flags - if options.with_visibility: - yield self.visibility_build_flags + yield self.visibility_build_flags return ' '.join(list(flag_builder())) def gen_visibility_attribute(self, options): - if options.build_shared_lib and options.with_visibility: + if options.build_shared_lib: return self.visibility_attribute return '' @@ -2714,9 +2707,6 @@ def main(argv=None): logging.error("Unknown module set %s", options.module_policy) module_policy = module_policies[options.module_policy] - if options.with_visibility is None: - options.with_visibility = True - if options.with_sphinx is None: if have_program('sphinx-build'): logging.info('Found sphinx-build (use --without-sphinx to disable)') |