Skip to content
Browse files

Merge pull request #1131 from zenspider/gcc-vs-clang

- Guard darwin CFLAGS against GCC.
  • Loading branch information...
2 parents 8f22560 + c18f79d commit ec43ab6e1f4b9bde6830af2662144ad41b56460b @flavorjones flavorjones committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 ext/nokogiri/extconf.rb
View
5 ext/nokogiri/extconf.rb
@@ -312,8 +312,9 @@ def patch
when /solaris/
$CFLAGS << " -DUSE_INCLUDED_VASPRINTF"
when /darwin/
- # TODO: maybe make it stricter to only work on stock ruby? How to tell?
- $CFLAGS << " -Wno-error=unused-command-line-argument-hard-error-in-future"
+ if RbConfig::MAKEFILE_CONFIG['CC'] !~ /gcc/ then
+ $CFLAGS << " -Wno-error=unused-command-line-argument-hard-error-in-future"
+ end
else
$CFLAGS << " -g -DXP_UNIX"
end

0 comments on commit ec43ab6

Please sign in to comment.
Something went wrong with that request. Please try again.