[Groonga-commit] groonga/groonga at fcebee1 [master] windows: support debug build for lz4

Back to archive index

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


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

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

  Message:
    windows: support debug build for lz4

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+8 -4)
===================================================================
--- packages/windows/Rakefile    2016-01-10 17:59:41 +0900 (7ff9c18)
+++ packages/windows/Rakefile    2016-01-10 18:18:19 +0900 (25dfcce)
@@ -137,11 +137,15 @@ namespace :build do
       sh("tar", "xzf", lz4_tar_gz.to_s) or exit(false)
     end
     Dir.chdir(tmp_dir + lz4_base) do
+      parameters = [
+        "CC=#{host}-gcc",
+        "EXT=.exe",
+        "SHARED_EXT=dll",
+        "PREFIX=#{binary_dir}",
+      ]
+      parameters << "CFLAGS=-O0 -g3" if debug_build_p
       sh("make",
-         "CC=#{host}-gcc",
-         "EXT=.exe",
-         "SHARED_EXT=dll",
-         "PREFIX=#{binary_dir}",
+         *parameters,
          "install") or exit(false)
 
       lz4_license_dir = license_dir + "lz4"
-------------- next part --------------
HTML����������������������������...
下载 



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