Bug 1376921 - Remove mips from the list of checked MacroAssemblers. r=tcampbell

This commit is contained in:
Nicolas B. Pierron 2017-06-29 18:49:10 +00:00
parent 1deee6448b
commit 702d71cbd0

View File

@ -31,8 +31,9 @@ from mozversioncontrol import get_repository_from_env
architecture_independent = set([ 'generic' ])
all_architecture_names = set([ 'x86', 'x64', 'arm', 'arm64', 'mips32', 'mips64' ])
all_shared_architecture_names = set([ 'x86_shared', 'mips_shared', 'arm', 'arm64' ])
all_unsupported_architectures_names = set([ 'mips32', 'mips64', 'mips_shared' ])
all_architecture_names = set([ 'x86', 'x64', 'arm', 'arm64' ])
all_shared_architecture_names = set([ 'x86_shared', 'arm', 'arm64' ])
reBeforeArg = "(?<=[(,\s])"
reArgType = "(?P<type>[\w\s:*&]+)"
@ -97,6 +98,7 @@ def get_normalized_signatures(signature, fileAnnot = None):
file_suffixes = set([
a.replace('_', '-') for a in
all_architecture_names.union(all_shared_architecture_names)
.union(all_unsupported_architectures_names)
])
def get_file_annotation(filename):
origFilename = filename
@ -210,6 +212,7 @@ def generate_file_content(signatures):
output = []
for s in sorted(signatures.keys()):
archs = set(sorted(signatures[s]))
archs -= all_unsupported_architectures_names
if len(archs.symmetric_difference(architecture_independent)) == 0:
output.append(s + ';\n')
if s.startswith('inline'):
@ -222,8 +225,8 @@ def generate_file_content(signatures):
elif len(archs.symmetric_difference(all_shared_architecture_names)) == 0:
output.append(s + ' PER_SHARED_ARCH;\n')
else:
output.append(s + ' DEFINED_ON(' + ', '.join(archs) + ');\n')
for a in archs:
output.append(s + ' DEFINED_ON(' + ', '.join(sorted(archs)) + ');\n')
for a in sorted(archs):
a = a.replace('_', '-')
masm = '%s/MacroAssembler-%s' % (a, a)
if s.startswith('inline'):