Use RbConfig::CONFIG['CC'] vs 'cc'
This commit is contained in:
parent
62488e7291
commit
5802d9d62c
|
@ -1,6 +1,6 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
if RbConfig::CONFIG['cc'] =~ /clang|gcc/
|
if RbConfig::CONFIG['CC'] =~ /clang|gcc/
|
||||||
$CFLAGS << ' -pedantic'
|
$CFLAGS << ' -pedantic'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue