build: Fix logic around --enable-local-rust
This commit is contained in:
parent
cd2effe022
commit
7ba0dce013
13
configure
vendored
13
configure
vendored
@ -349,12 +349,15 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" -a ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
|
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
|
||||||
then
|
then
|
||||||
err "no local rust to use"
|
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
|
||||||
else
|
then
|
||||||
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
|
err "no local rust to use"
|
||||||
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
|
else
|
||||||
|
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
|
||||||
|
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
|
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user