aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-10 23:39:16 +0000
committerlloyd <[email protected]>2014-01-10 23:39:16 +0000
commitd3dccecc381a4e35a79eb9ff4e7591d0ac58ede7 (patch)
treea012dd8e07f7b86c2f6965bcd05db1458e7c35d6 /configure.py
parentad6555f522ae16f6284e8dafa02f630b88bcf289 (diff)
Fix dependency checks for intrinsics and runtime Altivec check
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/configure.py b/configure.py
index ce829b666..e76ddf14c 100755
--- a/configure.py
+++ b/configure.py
@@ -657,21 +657,20 @@ class ModuleInfo(object):
return ['HAS_' + d[0] + ' ' + d[1] for d in chunks(self.define, 2)]
def compatible_cpu(self, archinfo, options):
-
arch_name = archinfo.basename
cpu_name = options.cpu
+ for isa in self.need_isa:
+ if isa in options.disable_intrinsics:
+ return False # explicitly disabled
+
+ if isa not in archinfo.isa_extensions:
+ return False
+
if self.arch != []:
if arch_name not in self.arch and cpu_name not in self.arch:
return False
- for isa in self.need_isa:
- if isa in options.disable_intrinsics:
- return False # explicitly disabled
-
- if isa not in archinfo.isa_extensions:
- return False
-
return True
def compatible_os(self, os):