mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Avoid errant "build failed" message on OS X < 10.7. Fixes #13.
This commit is contained in:
parent
9eb714a2ae
commit
7b4ee4cfe1
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ after_install_package() {
|
|||
|
||||
use_gcc42_on_lion() {
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7)" -eq 1 ]; then
|
||||
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7 || true)" -eq 1 ]; then
|
||||
export CC=/usr/bin/gcc-4.2
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue