List:Commits« Previous MessageNext Message »
From:pcrews Date:April 25 2008 2:18am
Subject:bk commit into 5.1 tree (pcrews:1.2589) BUG#36025
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of pcrews.  When pcrews does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-04-24 20:18:32-04:00, pcrews@stripped +1 -0
  Bug#36025 - funcs_1.<engine>_storedproc Test failing on Windows
  
  Adding change to CMakeLists.txt to make sure floating points will behave properly on
Windows builds made with VS2003

  CMakeLists.txt@stripped, 2008-04-24 20:18:30-04:00, pcrews@stripped +11 -0
    Bug#36025 - funcs_1.<engine>_storedproc Test failing on Windows
    
    Adding change to CMakeLists.txt to make sure floating points will behave properly on
Windows builds made with VS2003

diff -Nrup a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2008-03-27 19:46:39 -04:00
+++ b/CMakeLists.txt	2008-04-24 20:18:30 -04:00
@@ -20,6 +20,17 @@ PROJECT(MySql)
 # This reads user configuration, generated by configure.js.
 INCLUDE(win/configure.data)
 
+# VS2003 needs the /Op compiler option to disable floating point optimizations
+IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
+    SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Op")
+    SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Op")
+    SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Op")
+    SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /Op")
+    SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Op")
+    SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /Op")
+ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
+
+
 # Hardcode support for CSV storage engine
 SET(WITH_CSV_STORAGE_ENGINE TRUE)
 
Thread
bk commit into 5.1 tree (pcrews:1.2589) BUG#36025pcrews25 Apr 2008