Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

- Guard darwin CFLAGS against GCC.
  • Loading branch information...
commit ec43ab6e1f4b9bde6830af2662144ad41b56460b 2 parents 8f22560 + c18f79d
@flavorjones flavorjones authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.