From 9612c9ab2074ad8187b505d53682babc209a3ddd Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 16 Nov 2015 12:06:46 +0100 Subject: [PATCH] Abort configure if source path contains spaces, closes #18477 --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index 4fb6cb53bd8..4ce8c3c48a4 100755 --- a/configure +++ b/configure @@ -541,6 +541,16 @@ CFG_BUILD_DIR="$(pwd)/" CFG_SELF="$0" CFG_CONFIGURE_ARGS="$@" + +case "${CFG_SRC_DIR}" in + *\ * ) + err "The path to the rust source directory contains spaces, which is not supported" + ;; + *) + ;; +esac + + OPTIONS="" HELP=0 if [ "$1" = "--help" ]