Bug 1167222 - don't warn about out-of-date rustc when --enable-rust is not specified, r=ted-self-review-because-gps-said-so

This commit is contained in:
Ted Mielczarek 2015-05-26 13:12:54 +01:00
parent e6d957c692
commit 45edc3270c

View File

@ -431,7 +431,7 @@ if test -z "$RUSTC" -a -n "$MOZ_RUST"; then
To compile rust language sources, you must have 'rustc' in your path.
See http://www.rust-lang.org/ for more information.])
fi
if test -n "$MOZ_RUST" -a -z "$_RUSTC_MAJOR_VERSION" -o \
if test -n "$MOZ_RUST" && test -z "$_RUSTC_MAJOR_VERSION" -o \
"$_RUSTC_MAJOR_VERSION" -lt 1; then
AC_MSG_ERROR([Rust compiler ${RUSTC_VERSION} is too old.
To compile rust language sources please install at least