[Orxonox-commit 3638] r8323 - code/branches/kicklib2/cmake
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Apr 25 02:52:26 CEST 2011
Author: rgrieder
Date: 2011-04-25 02:52:25 +0200 (Mon, 25 Apr 2011)
New Revision: 8323
Modified:
code/branches/kicklib2/cmake/CompilerConfigGCC.cmake
code/branches/kicklib2/cmake/CompilerConfigMSVC.cmake
Log:
Enable non standard compliant floating point optimisations like a * 1.0 == a, etc.
Modified: code/branches/kicklib2/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/branches/kicklib2/cmake/CompilerConfigGCC.cmake 2011-04-24 22:47:15 UTC (rev 8322)
+++ code/branches/kicklib2/cmake/CompilerConfigGCC.cmake 2011-04-25 00:52:25 UTC (rev 8323)
@@ -68,6 +68,9 @@
ADD_COMPILER_FLAGS("-fPIC" CACHE)
ENDIF()
+# Enable non standard floating point optimisations
+ADD_COMPILER_FLAGS("-ffast-math" CACHE)
+
# Use SSE if possible
# Commented because this might not work for cross compiling
#CHECK_CXX_COMPILER_FLAG(-msse _gcc_have_sse)
Modified: code/branches/kicklib2/cmake/CompilerConfigMSVC.cmake
===================================================================
--- code/branches/kicklib2/cmake/CompilerConfigMSVC.cmake 2011-04-24 22:47:15 UTC (rev 8322)
+++ code/branches/kicklib2/cmake/CompilerConfigMSVC.cmake 2011-04-25 00:52:25 UTC (rev 8323)
@@ -65,8 +65,7 @@
SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG" MinSizeRel CACHE)
# Enable non standard floating point optimisations
-# Note: It hasn't been checked yet whether we have code that might break
-#ADD_COMPILER_FLAGS("-fp:fast" CACHE)
+ADD_COMPILER_FLAGS("-fp:fast" CACHE)
# Use Link time code generation for Release config if ORXONOX_RELEASE is defined
IF(ORXONOX_RELEASE)
More information about the Orxonox-commit
mailing list