Skip to content

Commit 9612c9a

Browse files
committed
Abort configure if source path contains spaces, closes rust-lang#18477
1 parent 02d9f29 commit 9612c9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure

+10
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,16 @@ CFG_BUILD_DIR="$(pwd)/"
541541
CFG_SELF="$0"
542542
CFG_CONFIGURE_ARGS="$@"
543543

544+
545+
case "${CFG_SRC_DIR}" in
546+
*\ * )
547+
err "The path to the rust source directory contains spaces, which is not supported"
548+
;;
549+
*)
550+
;;
551+
esac
552+
553+
544554
OPTIONS=""
545555
HELP=0
546556
if [ "$1" = "--help" ]

0 commit comments

Comments
 (0)