From 9a1932eaf765d5f279d605a14138ce923f730171 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 13 Jul 2012 12:01:04 -0700 Subject: [PATCH] Only set gcc's "-msse4.2", etc, option when compiling for generic targets. We don't need it when ispc is just generating an object file directly, and gcc on OS X doesn't recognize -mavx. --- run_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run_tests.py b/run_tests.py index 0cb78ed6..ea53b432 100755 --- a/run_tests.py +++ b/run_tests.py @@ -265,11 +265,9 @@ def run_test(filename): gcc_arch = '-m64' gcc_isa="" - if options.target == 'sse2' or options.target == 'sse2-x2': - gcc_isa = '-msse3' - if options.target == 'sse4' or options.target == 'sse4-x2' or options.target == 'generic-4': + if options.target == 'generic-4': gcc_isa = '-msse4.2' - if options.target == 'avx' or options.target == 'avx-x2' or options.target == 'generic-8': + if options.target == 'generic-8': gcc_isa = '-mavx' if (options.target == 'generic-16' or options.target == 'generic-32' or options.target == 'generic-64') \ and (options.include_file.find("knc.h")!=-1 or options.include_file.find("knc2x.h")!=-1):