From f06a870b88bd99fa770839763736c01c4c51dc07 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 29 Dec 2013 17:34:31 +0100 Subject: build: add flag for inline assembly This is used to disable inline assembly (useful for old version of binutils like the one in OpenBSD). --- waftools/detections/cpu.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'waftools') 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) -- cgit v1.2.3