Commit 06d7994b by Sam Stephenson

Feature detection for `-Wno-error=shorten-64-to-32`

parent e75dcd07
...@@ -657,7 +657,11 @@ else ...@@ -657,7 +657,11 @@ else
fi fi
# Work around warnings building Ruby 2.0 on Clang 2.x # Work around warnings building Ruby 2.0 on Clang 2.x
RUBY_CFLAGS="$RUBY_CFLAGS -Wno-error=shorten-64-to-32" if type clang &>/dev/null; then
if "${CC:-clang}" -x c /dev/null -E -Wno-error=shorten-64-to-32 &>/dev/null; then
RUBY_CFLAGS="$RUBY_CFLAGS -Wno-error=shorten-64-to-32"
fi
fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
export MAKE="make" export MAKE="make"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment