ext/json/ext/generator/extconf.rb in json-maglev--1.6.3 vs ext/json/ext/generator/extconf.rb in json-maglev--1.6.4
- old
+ new
@@ -3,11 +3,11 @@
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
+ unless $DEBUG && !$CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
+ $CFLAGS << ' -O0 -ggdb'
+ end
end
create_makefile 'json/ext/generator'