* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a04d93acc2
commit
6d74458037
@ -1,3 +1,11 @@
|
|||||||
|
Thu Dec 2 10:09:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Thu Dec 2 10:01:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/extmk.rb: define $makeflags.defined? like $mflags.
|
* ext/extmk.rb: define $makeflags.defined? like $mflags.
|
||||||
|
@ -1,16 +1,6 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
require 'rbconfig'
|
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"
|
if RUBY_VERSION < "1.9"
|
||||||
have_header("re.h")
|
have_header("re.h")
|
||||||
else
|
else
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
require 'rbconfig'
|
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")
|
have_header("re.h")
|
||||||
create_makefile 'json/ext/parser'
|
create_makefile 'json/ext/parser'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user