Bug 1164109 - Target MacOS X 10.7 or later for rust. r=ted

The rust compiler uses thread-local storage features which aren't
available on MacOS X 10.6. Until that's worked around or we drop
support for 10.6 in Firefox, we'll need to require a higher minimum
target version when building rust code.
This commit is contained in:
Ralph Giles 2015-05-12 14:18:50 -07:00
parent 7326c6a719
commit 65627b7399

View File

@ -465,6 +465,24 @@ esac
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
dnl ========================================================
dnl Special MacOS X checks
dnl ========================================================
if test -n "$MACOSX_DEPLOYMENT_TARGET" -a -n "$MOZ_RUST"; then
AC_MSG_CHECKING([MacOS X compatibility with rust])
# rustc doesn't support MacOS X 10.6 or earlier.
# https://github.com/rust-lang/rust/issues/25342
_MACOSX_TARGET_MINOR=`echo "$MACOSX_DEPLOYMENT_TARGET" | cut -d. -f2`
if test "$_MACOSX_TARGET_MINOR" -lt 7; then
AC_MSG_ERROR([rustc does not support MacOS X $MACOSX_DEPLOYMENT_TARGET
Add 'ac_add_options --enable-macos-target=10.7' (or later)
to mozconfig, or disable rust support.])
else
AC_MSG_RESULT([$MACOSX_DEPLOYMENT_TARGET is ok])
fi
fi
dnl ========================================================
dnl Special win32 checks
dnl ========================================================