aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 0a9596168..d7b03f8c1 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('-', '').replace('.', '_'),
+ const=isa_extn.replace('-', '').replace('.', ''),
dest='disable_intrinsics')
build_group = optparse.OptionGroup(parser, 'Build options')
@@ -972,6 +972,11 @@ class ArchInfo(InfoObject):
self.submodel_aliases = parse_lex_dict(lex.submodel_aliases)
self.wordsize = int(lex.wordsize)
+ alphanumeric = re.compile('^[a-z0-9]+$')
+ for isa in self.isa_extensions:
+ if alphanumeric.match(isa) is None:
+ logging.error('Invalid name for ISA extension "%s"', isa)
+
def all_submodels(self):
"""
Return a list of all submodels for this arch, ordered longest