Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4ce2f8b6
Commit
4ce2f8b6
authored
Jan 19, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add compiler flags used by the buildteam to do release
parent
6c1add82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
cmake/build_configurations/mysql_release.cmake
cmake/build_configurations/mysql_release.cmake
+69
-0
No files found.
cmake/build_configurations/mysql_release.cmake
View file @
4ce2f8b6
...
...
@@ -21,3 +21,72 @@ SET(WITH_BLACKHOLE_STORAGE_ENGINE 1)
SET
(
WITH_FEDERATED_STORAGE_ENGINE 1
)
SET
(
WITHOUT_EXAMPLE_STORAGE_ENGINE 1
)
SET
(
WITH_EMBEDDED_SERVER 1
)
SET
(
ENABLE_LOCAL_INFILE TRUE
)
SET
(
WITH_SSL bundled
)
SET
(
WITH_ZLIB bundled
)
IF
(
NOT COMPILATION_COMMENT
)
SET
(
COMPILATION_COMMENT
"MySQL Community Server (GPL)"
)
ENDIF
()
IF
(
UNIX
)
SET
(
CMAKE_INSTALL_PREFIX
"/usr/local/mysql"
)
SET
(
WITH_EXTRA_CHARSETS complex
)
SET
(
WITH_READLINE TRUE
)
SET
(
WITH_PIC TRUE
)
# Default GCC flags
IF
(
CMAKE_C_COMPILER_IS_GNUCXX
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g -O3 -static-libgcc -fno-omit-frame-pointer"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g -O3 -static-libgcc -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
)
ENDIF
()
# HPUX flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"HP"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ia64"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g +O2 +DD64 +DSitanium2 -mt -AC99"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g +O2 +DD64 +DSitanium2 -mt -Aa"
)
ENDIF
()
ENDIF
()
SET
(
WITH_SSL
)
ENDIF
()
# Linux flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Intel"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-static-intel -g -O3 -unroll2 -ip -mp -restrict"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-static-intel -g -O3 -unroll2 -ip -mp -restrict"
)
ENDIF
()
ENDIF
()
# OSX flags
IF
(
APPLE
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-Os
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-Os
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
ENDIF
()
# Solaris flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"i386"
)
IF
(
CMAKE_SIZEOF_VOIDP EQUAL 4
)
# 32 bit - optinmization is -xO2
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
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
()
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment