diff options
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/detections/cpu.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/waftools/detections/cpu.py b/waftools/detections/cpu.py index ce342fdd73..3a8615f259 100644 --- a/waftools/detections/cpu.py +++ b/waftools/detections/cpu.py @@ -19,10 +19,10 @@ def configure(ctx): ctx.define('ARCH_X86_64', 0) ctx.define('HAVE_FAST_64BIT', 0) - ctx.define('HAVE_MMX', 'ARCH_X86', quote=False) - ctx.define('HAVE_MMX2', 'ARCH_X86', quote=False) - ctx.define('HAVE_SSE', 'ARCH_X86', quote=False) - ctx.define('HAVE_SSE2', 'ARCH_X86', quote=False) - ctx.define('HAVE_SSSE3', 'ARCH_X86', quote=False) + ctx.define('HAVE_MMX', 'HAVE_ASM && ARCH_X86', quote=False) + ctx.define('HAVE_MMX2', 'HAVE_ASM && ARCH_X86', quote=False) + ctx.define('HAVE_SSE', 'HAVE_ASM && ARCH_X86', quote=False) + ctx.define('HAVE_SSE2', 'HAVE_ASM && ARCH_X86', quote=False) + ctx.define('HAVE_SSSE3', 'HAVE_ASM && ARCH_X86', quote=False) globals().get(ctx.env.DEST_CPU, default)(ctx) |