diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-02-14 22:15:16 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-02-15 12:51:35 +0100 |
commit | a5d9597e9703052895c8c2401132e77aa68a6123 (patch) | |
tree | 339369f681d0081c582b30afe1aefbd4eb74ea31 /extra | |
parent | 5f078cc8ff1f8af979d8852bf62fa259f41b1f93 (diff) | |
download | mariadb-git-a5d9597e9703052895c8c2401132e77aa68a6123.tar.gz |
better inline check
1. check that unused inline functions are removed
2. only allow compilation if they are or if the check if overridden
3. with CMAKE_GENERATOR=Makefiles, use all flags when testing
(e.g. both CMAKE_C_FLAGS and CMAKE_C_FLAGS_DEBUG if
CMAKE_BUILD_TYPE=Debug). This is because
- on Solaris with the SunPro compiler, default CMAKE_C_FLAGS_xxx
values contain -xO2 (for Release and RelWithDebInfo)
and -g (for RelWithDebInfo and Debug)
- proper inlining only works at -xO4 without -g
- so if CMAKE_C_FLAGS has -xO4, inlining would work in
configure.cmake (before this fix) and fail during actual compilation
also remove the outdated check for inline from myu_global.h
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions