[Groonga-commit] groonga/groonga at fb37ea2 [master] windows: support debug build for MeCab

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jan 10 19:48:43 JST 2016


Kouhei Sutou	2016-01-10 19:48:43 +0900 (Sun, 10 Jan 2016)

  New Revision: fb37ea22debb2b35d102c4f340bfed593c560a7a
  https://github.com/groonga/groonga/commit/fb37ea22debb2b35d102c4f340bfed593c560a7a

  Message:
    windows: support debug build for MeCab

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+7 -1)
===================================================================
--- packages/windows/Rakefile    2016-01-10 19:46:05 +0900 (f8b5711)
+++ packages/windows/Rakefile    2016-01-10 19:48:43 +0900 (2aafb1e)
@@ -217,7 +217,13 @@ namespace :build do
       sh("./configure",
          "--prefix=#{binary_dir}",
          "--host=#{host}") or exit(false)
-      sh("env", "GREP_OPTIONS=--text", "nice", "make", "-j8") or exit(false)
+      build_parameters = []
+      if debug_build_p
+        build_parameters << "CFLAGS=-O0 -Wall -g3"
+        build_parameters << "CXXFLAGS=-O0 -Wall -g3"
+      end
+      sh("env", "GREP_OPTIONS=--text", "nice",
+         "make", "-j8", *build_parameters) or exit(false)
       sh("env", "GREP_OPTIONS=--text", "make", "install") or exit(false)
 
       mecab_rc_path = binary_dir + "etc" + "mecabrc"
-------------- next part --------------
HTML����������������������������...
Download 



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