diff options
-rw-r--r-- | waftools/detections/cpu.py | 10 | ||||
-rw-r--r-- | wscript | 5 |
2 files changed, 10 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) @@ -59,6 +59,11 @@ build_options = [ 'desc': 'w32 executable', 'deps_any': [ 'os-win32', 'os-cygwin'], 'func': check_ctx_vars('WINDRES') + }, { + 'name': '--asm', + 'desc': 'inline assembly', + 'default': 'enable', + 'func': check_true, } ] |