compiler_option_sets = self.get_options().default_compiler_option_sets
logger.debug("using default option sets: {}".format(compiler_option_sets))
compiler_options = set()
// Set values for enabled options.
for option_set_key in compiler_option_sets:
val = self.get_options().compiler_option_sets_enabled_args.get(option_set_key, ())
After Change
compiler_option_sets = self.get_options().default_compiler_option_sets
logger.debug("using default option sets: {}".format(compiler_option_sets))
compiler_options = []
// Set values for disabled options (they will come before the enabled options). This allows
// enabled option sets to override the disabled ones, if the underlying command has later
// options supersede earlier options.
compiler_options.extend(
disabled_arg
for option_set_key, disabled_args in self.get_options().compiler_option_sets_disabled_args.items()
if option_set_key not in compiler_option_sets
for disabled_arg in disabled_args
)
// Set values for enabled options.
compiler_options.extend(
enabled_arg
for option_set_key in compiler_option_sets
for enabled_arg in self.get_options().compiler_option_sets_enabled_args.get(option_set_key, [])
)
return compiler_options