diff options
Diffstat (limited to 'ext/json/ext/generator/extconf.rb')
-rw-r--r-- | ext/json/ext/generator/extconf.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb index a9eae14..32aed7f 100644 --- a/ext/json/ext/generator/extconf.rb +++ b/ext/json/ext/generator/extconf.rb @@ -5,9 +5,9 @@ unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -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' |