summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/ext/parser/extconf.rb')
-rw-r--r--ext/json/ext/parser/extconf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/ext/parser/extconf.rb b/ext/json/ext/parser/extconf.rb
index b09f122..4791829 100644
--- a/ext/json/ext/parser/extconf.rb
+++ b/ext/json/ext/parser/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
+ if $DEBUG && !$CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
+ $CFLAGS << ' -O0 -ggdb'
+ end
end
create_makefile 'json/ext/parser'