From 2bf5fe3061514f8da6279d71bf30011e036308b6 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 22 Mar 2015 14:03:37 +0100 Subject: [PATCH] Updated extconf.rb for Windows support --- ext/c/extconf.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ext/c/extconf.rb b/ext/c/extconf.rb index 8cb21ae..0041a56 100644 --- a/ext/c/extconf.rb +++ b/ext/c/extconf.rb @@ -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')