diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-20 00:28:47 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-20 00:28:47 +0100 |
commit | bc61d6e8404be4dcc2c78d3e2dc77e0c2e5ad915 (patch) | |
tree | 739478249c27e55e535fa81b3fdfec9d25077994 /cmake | |
parent | e6e8855bf2587800608664b31923f78d37677f52 (diff) | |
download | mariadb-git-bc61d6e8404be4dcc2c78d3e2dc77e0c2e5ad915.tar.gz |
Add Solaris sparc Sun Studio flags
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/build_configurations/mysql_release.cmake | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index a2a3d9ca046..dde756391db 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -73,18 +73,29 @@ IF(UNIX) IF(CMAKE_C_COMPILER_ID MATCHES "SunPro") IF(CMAKE_SYSTEM_PROCESSOR MATCHES "i386") IF(CMAKE_SIZEOF_VOIDP EQUAL 4) - # 32 bit - optinmization is -xO2 + # Solaris x86 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -xO2 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g0 -xO2 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -features=no%except -xlibmil -xlibmopt -xtarget=generic") ELSE() - # 64 bit - optimization is -xO3 + # Solaris x64 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g0 -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -features=no%except -xlibmil -xlibmopt -xtarget=generic") ENDIF() + ELSE() + + IF(CMAKE_SIZEOF_VOIDP EQUAL 4) + # Solaris sparc 32 bit + SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -xO3 -Xa -xstrconst -mt -xarch=sparc") + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g0 -xO3 -noex -mt -xarch=sparc") + ELSE() + # Solaris sparc 64 bit + SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -xO3 -Xa -xstrconst -mt") + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g0 -xO3 -noex -mt") + ENDIF() ENDIF() ENDIF() ENDIF() |