[Groonga-commit] groonga/groonga at 1805120 [master] windows: support debug build for msgpack

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jan 10 18:28:43 JST 2016


Kouhei Sutou	2016-01-10 18:28:43 +0900 (Sun, 10 Jan 2016)

  New Revision: 1805120afda67b1858999e0a08c3705cd7a9387e
  https://github.com/groonga/groonga/commit/1805120afda67b1858999e0a08c3705cd7a9387e

  Message:
    windows: support debug build for msgpack

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+10 -3)
===================================================================
--- packages/windows/Rakefile    2016-01-10 18:28:31 +0900 (18b4b89)
+++ packages/windows/Rakefile    2016-01-10 18:28:43 +0900 (2be9819)
@@ -173,9 +173,16 @@ namespace :build do
     end
     Dir.chdir(tmp_dir + msgpack_base) do
       sh("autoreconf", "--install", "--force")
-      sh("./configure",
-         "--prefix=#{binary_dir}",
-         "--host=#{host}") or exit(false)
+      configure_parameters = [
+        "--prefix=#{binary_dir}",
+        "--host=#{host}",
+      ]
+      if debug_build_p
+        configure_parameters << "--enable-debug"
+        configure_parameters << "CFLAGS=-O0 -g3"
+        configure_parameters << "CXXFLAGS=-O0 -g3"
+      end
+      sh("./configure", *configure_parameters) or exit(false)
       sh("env", "GREP_OPTIONS=--text", "nice", "make", "-j8") or exit(false)
       sh("env", "GREP_OPTIONS=--text", "make", "install") or exit(false)
 
-------------- next part --------------
HTML����������������������������...
Download 



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