From 245ed2e319aa3acef2c914fd151018a628982819 Mon Sep 17 00:00:00 2001 From: Chris Paris Date: Fri, 1 Aug 2014 18:24:02 -1000 Subject: [PATCH] Do not use Rust snapshot if --local-rust-root is specified. --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 45ee0123a4b..4d92cd44ed6 100755 --- a/configure +++ b/configure @@ -355,6 +355,11 @@ then exit 0 fi +if [ ! -z "$CFG_ENABLE_TREE_RUST" -a ! -z "$CFG_LOCAL_RUST_ROOT" ] +then + err "Specify at most one of --enable-tree-rust and --local-rust-root." +fi + # Split target triple split_triple "${CFG_TARGET}" TARGET_CPUTYPE TARGET_VENDOR TARGET_OSTYPE @@ -408,7 +413,7 @@ if [ $CFG_OSTYPE = "linux-androideabi" ] then CFG_ENABLE_TREE_RUST=1 # We don't yet have Android snapshots fi -if [ -z "$CFG_ENABLE_TREE_RUST" ] +if [ -z "$CFG_ENABLE_TREE_RUST" -a -z "$CFG_LOCAL_RUST_ROOT" ] then if ! [ -f ${CFG_BUILD_DIR}/rust_snapshot/${SNAPSHOT_VERSION}-${DEFAULT_TARGET}/bin/rustc -a -f ${CFG_BUILD_DIR}/src/compiler/rust-snapshot-hash-stamp -a -z "$(diff ${CFG_BUILD_DIR}/src/compiler/rust-snapshot-hash-stamp ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash)" ] then