aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-06 20:27:06 +0000
committerlloyd <[email protected]>2009-11-06 20:27:06 +0000
commit1ad608c62edfefe6650a113ed40fe6425dd200e1 (patch)
tree42ad99a739a1f69c663980485bd00733a679424e
parentd5ff7674397e76373398ce6007adf9b18a43bcd1 (diff)
Respect --with-isa when choosing what to enable
-rwxr-xr-xconfigure.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index 47aadfcd2..5e2e4004d 100755
--- a/configure.py
+++ b/configure.py
@@ -404,9 +404,10 @@ class ModuleInfo(object):
else:
self.uses_tr1 = False
- def compatible_cpu(self, archinfo, cpu_name):
+ def compatible_cpu(self, archinfo, options):
arch_name = archinfo.basename
+ cpu_name = options.cpu
if self.arch != []:
if arch_name not in self.arch and cpu_name not in self.arch:
@@ -415,7 +416,7 @@ class ModuleInfo(object):
if self.need_isa != None:
cpu_isa = archinfo.isa_extensions_in(cpu_name)
if self.need_isa not in cpu_isa:
- return False
+ return self.need_isa in options.with_isa_extns
return True
@@ -915,7 +916,7 @@ def choose_modules_to_use(modules, archinfo, options):
elif modname in options.enabled_modules:
to_load.append(modname) # trust the user
- elif not module.compatible_cpu(archinfo, options.cpu):
+ elif not module.compatible_cpu(archinfo, options):
cannot_use_because(modname, 'CPU incompatible')
elif not module.compatible_os(options.os):
cannot_use_because(modname, 'OS incompatible')