diff options
Diffstat (limited to 'ext/json/parser/extconf.rb')
-rw-r--r-- | ext/json/parser/extconf.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/json/parser/extconf.rb b/ext/json/parser/extconf.rb new file mode 100644 index 0000000000..4c3e56a506 --- /dev/null +++ b/ext/json/parser/extconf.rb @@ -0,0 +1,14 @@ +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 + +create_makefile 'json/ext/parser' |