[Groonga-commit] groonga/groonga at 63c4e3e [master] cmake: try to use GCC build options for Clang

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 21 21:52:13 JST 2015


Kouhei Sutou	2015-07-21 21:52:13 +0900 (Tue, 21 Jul 2015)

  New Revision: 63c4e3e3ebd0af9743edc7d2329397b8b99eeeeb
  https://github.com/groonga/groonga/commit/63c4e3e3ebd0af9743edc7d2329397b8b99eeeeb

  Message:
    cmake: try to use GCC build options for Clang
    
    MariaDB does so at 66fd45afce1ba5e1032c32cc891c09d64fa38d9e.

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+2 -2)
===================================================================
--- CMakeLists.txt    2015-07-17 16:47:35 +0900 (73f2139)
+++ CMakeLists.txt    2015-07-21 21:52:13 +0900 (3124fc8)
@@ -168,7 +168,7 @@ macro(check_build_flag flag)
   check_cxxflag(${flag})
 endmacro()
 
-if(CMAKE_COMPILER_IS_GNUCXX)
+if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
   check_build_flag("-Wall")
   check_build_flag("-Wextra")
   check_build_flag("-Wno-unused-but-set-variable")
@@ -201,7 +201,7 @@ endif()
 
 option(GRN_WITH_DEBUG "enable debug build." OFF)
 if(GRN_WITH_DEBUG)
-  if(CMAKE_COMPILER_IS_GNUCXX)
+  if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
     set(GRN_C_COMPILE_FLAGS "${GRN_C_COMPILE_FLAGS} -g3 -O0")
     set(GRN_CXX_COMPILE_FLAGS "${GRN_CXX_COMPILE_FLAGS} -g3 -O0")
   endif()
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index