ruby-changes:17990
From: naruse <ko1@a...>
Date: Thu, 2 Dec 2010 10:12:48 +0900 (JST)
Subject: [ruby-changes:17990] Ruby:r30011 (trunk): * ext/json/generator/extconf.rb: remove the lines which set -O3
naruse 2010-12-02 10:12:41 +0900 (Thu, 02 Dec 2010) New Revision: 30011 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30011 Log: * ext/json/generator/extconf.rb: remove the lines which set -O3 when -O option is not set. Note that -O3 doesn't always exist. * ext/json/parser/extconf.rb: ditto. Modified files: trunk/ChangeLog trunk/ext/json/generator/extconf.rb trunk/ext/json/parser/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30010) +++ ChangeLog (revision 30011) @@ -1,3 +1,11 @@ +Thu Dec 2 10:09:40 2010 NARUSE, Yui <naruse@r...> + + * ext/json/generator/extconf.rb: remove the lines which set -O3 + when -O option is not set. + Note that -O3 doesn't always exist. + + * ext/json/parser/extconf.rb: ditto. + Thu Dec 2 10:01:59 2010 NARUSE, Yui <naruse@r...> * ext/extmk.rb: define $makeflags.defined? like $mflags. Index: ext/json/generator/extconf.rb =================================================================== --- ext/json/generator/extconf.rb (revision 30010) +++ ext/json/generator/extconf.rb (revision 30011) @@ -1,16 +1,6 @@ require 'mkmf' require 'rbconfig' -unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') - $CFLAGS << ' -O3' -end -if CONFIG['CC'] =~ /gcc/ - $CFLAGS << ' -Wall' - #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') - # $CFLAGS << ' -O0 -ggdb' - #end -end - if RUBY_VERSION < "1.9" have_header("re.h") else Index: ext/json/parser/extconf.rb =================================================================== --- ext/json/parser/extconf.rb (revision 30010) +++ ext/json/parser/extconf.rb (revision 30011) @@ -1,15 +1,5 @@ require 'mkmf' require 'rbconfig' -unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') - $CFLAGS << ' -O3' -end -if CONFIG['CC'] =~ /gcc/ - $CFLAGS << ' -Wall' - #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') - # $CFLAGS << ' -O0 -ggdb' - #end -end - have_header("re.h") create_makefile 'json/ext/parser' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/