mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
4a84c27e3e
e22b2f2bdfe6a9b0. this fixes some bugs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
20 lines
394 B
Ruby
20 lines
394 B
Ruby
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
|
|
have_header("ruby/re.h")
|
|
have_header("ruby/encoding.h")
|
|
end
|
|
create_makefile 'json/ext/generator'
|