Updated extconf.rb for Windows support

This commit is contained in:
Yorick Peterse 2015-03-22 14:03:37 +01:00
parent 076d82507a
commit 2bf5fe3061
1 changed files with 3 additions and 5 deletions

View File

@ -1,13 +1,11 @@
require 'mkmf'
have_header('ruby.h')
$CFLAGS << ' -Wextra -Wall -pedantic'
if RbConfig::CONFIG['cc'] =~ /clang|gcc/
$CFLAGS << ' -pedantic'
end
if ENV['DEBUG']
$CFLAGS << ' -O0 -g'
else
$CFLAGS << ' -O3'
end
create_makefile('liboga')