Updated extconf.rb for Windows support
This commit is contained in:
parent
076d82507a
commit
2bf5fe3061
|
@ -1,13 +1,11 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
have_header('ruby.h')
|
if RbConfig::CONFIG['cc'] =~ /clang|gcc/
|
||||||
|
$CFLAGS << ' -pedantic'
|
||||||
$CFLAGS << ' -Wextra -Wall -pedantic'
|
end
|
||||||
|
|
||||||
if ENV['DEBUG']
|
if ENV['DEBUG']
|
||||||
$CFLAGS << ' -O0 -g'
|
$CFLAGS << ' -O0 -g'
|
||||||
else
|
|
||||||
$CFLAGS << ' -O3'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_makefile('liboga')
|
create_makefile('liboga')
|
||||||
|
|
Loading…
Reference in New Issue