[gegl/soc-2013-opecl-ops] Remove -ftree-vectorize when building with clang



commit 1563950893a60205c61fbab8f896b4c69778aeec
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Wed Sep 18 01:15:13 2013 -0700

    Remove -ftree-vectorize when building with clang

 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 62b3832..ae0f33c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -352,7 +352,9 @@ if test "x$enable_mmx" = "xyes"; then
 
     if test "x$enable_sse" = "xyes"; then
       AS_COMPILER_FLAG([-msse], [SSE_EXTRA_CFLAGS="-msse"])
-      AS_COMPILER_FLAG([-ftree-vectorize], [SSE_EXTRA_CFLAGS="$SSE_EXTRA_CFLAGS -ftree-vectorize"])
+      if test "x$CC" != "xclang"; then
+        AS_COMPILER_FLAG([-ftree-vectorize], [SSE_EXTRA_CFLAGS="$SSE_EXTRA_CFLAGS -ftree-vectorize"])
+      fi
       AS_COMPILER_FLAG([-ffast-math], [SSE_EXTRA_CFLAGS="$SSE_EXTRA_CFLAGS -ffast-math"])
 
       AC_MSG_CHECKING(whether we can compile SSE code)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]