Skip to content

Commit 7ba0dce

Browse files
committed
build: Fix logic around --enable-local-rust
1 parent cd2effe commit 7ba0dce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

configure

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,15 @@ then
349349
fi
350350
fi
351351

352-
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" -a ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
352+
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
353353
then
354-
err "no local rust to use"
355-
else
356-
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
357-
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
354+
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
355+
then
356+
err "no local rust to use"
357+
else
358+
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
359+
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
360+
fi
358361
fi
359362

360363
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]

0 commit comments

Comments
 (0)