diff options
author | Jack Lloyd <[email protected]> | 2017-12-11 20:07:05 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-11 20:10:54 -0500 |
commit | b6f51a9be08df03d54411c65f9271b9a62ab5554 (patch) | |
tree | 187f84165050187d40e2e62d7f027161a6f75b2d /configure.py | |
parent | f2a663bbb74b18026aee07fe58e5ae29fc10d97c (diff) |
Finish with the CPU feature macros
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 794eb2ecc..1cde6d267 100755 --- a/configure.py +++ b/configure.py @@ -335,7 +335,7 @@ def process_command_line(args): # pylint: disable=too-many-locals target_group.add_option('--disable-%s' % (isa_extn), help='disable %s intrinsics' % (isa_extn_name), action='append_const', - const=isa_extn.replace('-', ''), + const=isa_extn.replace('-', '').replace('.', '_'), dest='disable_intrinsics') build_group = optparse.OptionGroup(parser, 'Build options') @@ -1005,16 +1005,6 @@ class ArchInfo(InfoObject): return sorted(isas) - def defines(self, cc, options): - """ - Return CPU-specific defines for build.h - """ - - def form_macro(cpu_name): - return cpu_name.upper().replace('.', '').replace('-', '_') - - return ['TARGET_SUPPORTS_' + form_macro(isa) for isa in self.supported_isa_extensions(cc, options)] - MachOptFlags = collections.namedtuple('MachOptFlags', ['flags', 'submodel_prefix']) @@ -1878,7 +1868,7 @@ def create_template_vars(source_paths, build_config, options, modules, cc, arch, 'os_features': osinfo.enabled_features(options), 'os_name': osinfo.basename, 'os_type': osinfo.os_type, - 'cpu_defines': arch.defines(cc, options), + 'cpu_features': arch.supported_isa_extensions(cc, options), 'house_ecc_curve_defines': house_ecc_curve_macros(options.house_curve), 'fuzzer_mode': options.unsafe_fuzzer_mode, |