Use RbConfig::CONFIG['CC'] vs 'cc'

This commit is contained in:
Yorick Peterse 2015-03-23 19:46:30 +01:00
parent 62488e7291
commit 5802d9d62c
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
require 'mkmf'
if RbConfig::CONFIG['cc'] =~ /clang|gcc/
if RbConfig::CONFIG['CC'] =~ /clang|gcc/
$CFLAGS << ' -pedantic'
end