From 7538ee8f5d807e2857bb3c0aeb8d561a382dce21 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 27 Mar 2025 22:15:50 +0900 Subject: [PATCH] gperf: remove obsolete command line options -p and -g --- build_config/default.rb | 2 +- lib/mruby/build/command.rb | 2 +- tasks/toolchains/visualcpp.rake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_config/default.rb b/build_config/default.rb index 69943a7d3..21795b453 100644 --- a/build_config/default.rb +++ b/build_config/default.rb @@ -60,7 +60,7 @@ MRuby::Build.new do |conf| # gperf settings # conf.gperf do |gperf| # gperf.command = 'gperf' - # gperf.compile_options = %q[-L ANSI-C -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] + # gperf.compile_options = %q[-L ANSI-C -C -j1 -i 1 -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] # end # file extensions diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index 970264407..773166a4f 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -266,7 +266,7 @@ module MRuby def initialize(build) super @command = 'gperf' - @compile_options = %q[-L ANSI-C -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] + @compile_options = %q[-L ANSI-C -C -j1 -i 1 -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] end def run(outfile, infile) diff --git a/tasks/toolchains/visualcpp.rake b/tasks/toolchains/visualcpp.rake index 53954e9a5..b23793f5a 100644 --- a/tasks/toolchains/visualcpp.rake +++ b/tasks/toolchains/visualcpp.rake @@ -35,7 +35,7 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params| conf.gperf do |gperf| gperf.command = 'gperf.exe' - gperf.compile_options = %q[-L ANSI-C -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] + gperf.compile_options = %q[-L ANSI-C -C -j1 -i 1 -o -t -N mrb_reserved_word -k"1,3,$" "%{infile}" > "%{outfile}"] end conf.exts do |exts|