aboutsummaryrefslogtreecommitdiffstats
path: root/ext/json
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/generator/extconf.rb2
-rw-r--r--ext/json/ext/parser/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb
index 55741516f4..fc267420f1 100644
--- a/ext/json/ext/generator/extconf.rb
+++ b/ext/json/ext/generator/extconf.rb
@@ -1,7 +1,7 @@
require 'mkmf'
require 'rbconfig'
-if CONFIG['CC'] =~ /gcc/
+if CONFIG['GCC'] == 'yes'
$CFLAGS += ' -Wall'
#$CFLAGS += ' -O0 -ggdb'
end
diff --git a/ext/json/ext/parser/extconf.rb b/ext/json/ext/parser/extconf.rb
index b56c4e66d7..e790f6caae 100644
--- a/ext/json/ext/parser/extconf.rb
+++ b/ext/json/ext/parser/extconf.rb
@@ -1,7 +1,7 @@
require 'mkmf'
require 'rbconfig'
-if CONFIG['CC'] =~ /gcc/
+if CONFIG['GCC'] == 'yes'
$CFLAGS += ' -Wall'
#$CFLAGS += ' -O0 -ggdb'
end