Navigation Menu

Skip to content

Commit

Permalink
Enable templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 11, 2018
1 parent d717f03 commit e1a7ce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions CMakeLists.txt
Expand Up @@ -383,14 +383,11 @@ else()
mrn_build_flag("-Wno-unused-parameter")
mrn_build_flag("-Wno-strict-aliasing")
mrn_build_flag("-Wno-deprecated")
mrn_check_cxxflag("-fno-implicit-templates")
if(("${MYSQL_VARIANT}" STREQUAL "MariaDB") OR
("${MYSQL_VARIANT}" STREQUAL "MySQL" AND
${MYSQL_VERSION} VERSION_LESS "5.7.0"))
mrn_check_cxxflag("-fno-exceptions")
mrn_check_cxxflag("-felide-constructors")
if("${MYSQL_VARIANT}" STREQUAL "MariaDB" AND
${MYSQL_VERSION} VERSION_LESS "10.1.0")
mrn_check_cxxflag("-fno-rtti")
endif()
mrn_check_cxxflag("-felide-constructors")
endif()
set_source_files_properties(${MRN_SOURCES} PROPERTIES
COMPILE_FLAGS "${MYSQL_CFLAGS} ${MRN_CXX_COMPILE_FLAGS}")
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
Expand Up @@ -207,13 +207,13 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
MYSQL_MAJOR_MINOR_VERSION=["$(echo $MYSQL_VERSION | sed -e 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*[a-z]*\)[.0-9a-z-]*$/\1.\2/')"]
MYSQL_CXXFLAGS="-fno-implicit-templates -felide-constructors"
MYSQL_CXXFLAGS="-felide-constructors"
case "$MYSQL_MAJOR_MINOR_VERSION" in
5.7|8.*)
:
5.5|10.0)
MYSQL_CXXFLAGS="$MYSQL_CXXFLAGS -fno-rtti"
;;
*)
MYSQL_CXXFLAGS="$MYSQL_CXXFLAGS -fno-exceptions -fno-rtti"
:
;;
esac
Expand Down

0 comments on commit e1a7ce1

Please sign in to comment.