Skip to content

Commit

Permalink
windows: support debug build for MeCab
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 10, 2016
1 parent bd3cc74 commit fb37ea2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/windows/Rakefile
Expand Up @@ -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"
Expand Down

0 comments on commit fb37ea2

Please sign in to comment.