[Groonga-commit] groonga/groonga at 43fa6a7 [master] cmake: support debug build by -DGRN_WITH_DEBUG=yes

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 4 13:23:36 JST 2013


Kouhei Sutou	2013-10-04 13:23:36 +0900 (Fri, 04 Oct 2013)

  New Revision: 43fa6a7cfb1dfafaeda5403c0c7986c88bfa9aa5
  https://github.com/groonga/groonga/commit/43fa6a7cfb1dfafaeda5403c0c7986c88bfa9aa5

  Message:
    cmake: support debug build by -DGRN_WITH_DEBUG=yes

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+8 -0)
===================================================================
--- CMakeLists.txt    2013-10-04 15:11:54 +0900 (75b7d66)
+++ CMakeLists.txt    2013-10-04 13:23:36 +0900 (82c04a5)
@@ -87,6 +87,14 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   set(GRN_CXX_COMPILE_FLAGS "${GRN_NO_WARNING_COMPILE_FLAGS} -fexceptions")
 endif()
 
+option(GRN_WITH_DEBUG "enable debug build." OFF)
+if(GRN_WITH_DEBUG)
+  if(CMAKE_COMPILER_IS_GNUCXX)
+    set(GRN_C_COMPILE_FLAGS "${GRN_C_COMPILE_FLAGS} -g3 -O0")
+    set(GRN_CXX_COMPILE_FLAGS "${GRN_CXX_COMPILE_FLAGS} -g3 -O0")
+  endif()
+endif()
+
 add_definitions(
   -DHAVE_CONFIG_H
   )
-------------- next part --------------
HTML����������������������������...
Download 



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