Makefile fix: on PowerPC architecture SSE compile should not happen.
authorTon Roosendaal <ton@blender.org>
Thu, 5 Aug 2010 14:04:56 +0000 (14:04 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 5 Aug 2010 14:04:56 +0000 (14:04 +0000)
Note for the coder here, is it correct to enable SSE with a general
WITH_BF_RAYOPTIMIZATION flag? Just call it WITH_SSE? More clear :)

build_files/make/nan_definitions.mk

index d3948511ce3f711440cefb28603f6fbea35afcab..d8da2189e6d07510fcbdac7d67cddcae760bbbde 100644 (file)
@@ -161,7 +161,11 @@ ifndef CONFIG_GUESS
   export WITH_TIFF ?= true
 
   #enable raytracing optimization (currently only for i386 and x86_64)
-  export WITH_BF_RAYOPTIMIZATION ?= true
+  ifeq ($(CPU),powerpc)
+    export WITH_BF_RAYOPTIMIZATION ?= false
+  else
+    export WITH_BF_RAYOPTIMIZATION ?= true
+  endif
 
   export WITH_LCMS ?= false
   export WITH_CINEON ?= true