[Vm-dev] [commit] r2350 - disable optimisation for FloatMathPlugin only

commits at squeakvm.org commits at squeakvm.org
Sun Jan 23 07:15:40 UTC 2011


Author: piumarta
Date: 2011-01-22 23:15:38 -0800 (Sat, 22 Jan 2011)
New Revision: 2350

Added:
   trunk/platforms/unix/plugins/FloatMathPlugin/build.cmake
Modified:
   trunk/platforms/unix/plugins/FloatMathPlugin/config.cmake
Log:
disable optimisation for FloatMathPlugin only

Added: trunk/platforms/unix/plugins/FloatMathPlugin/build.cmake
===================================================================
--- trunk/platforms/unix/plugins/FloatMathPlugin/build.cmake	                        (rev 0)
+++ trunk/platforms/unix/plugins/FloatMathPlugin/build.cmake	2011-01-23 07:15:38 UTC (rev 2350)
@@ -0,0 +1 @@
+SET (CMAKE_C_FLAGS "${LIBM_CFLAGS}")

Modified: trunk/platforms/unix/plugins/FloatMathPlugin/config.cmake
===================================================================
--- trunk/platforms/unix/plugins/FloatMathPlugin/config.cmake	2011-01-15 20:21:56 UTC (rev 2349)
+++ trunk/platforms/unix/plugins/FloatMathPlugin/config.cmake	2011-01-23 07:15:38 UTC (rev 2350)
@@ -10,5 +10,7 @@
 # GCC optimizations break fdlibm so disable them for now.
 
 IF (CMAKE_COMPILER_IS_GNUCC)
-  SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -mno-fused-madd")
+  SET (LIBM_CFLAGS "${CMAKE_C_FLAGS} -O0 -mno-fused-madd")
+ELSE ()
+  SET (LIBM_CFLAGS "${CMAKE_C_FLAGS}")
 ENDIF ()



More information about the Vm-dev mailing list