From aafb951af481df0afc7de035af77f2c4b01db087 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 12 Apr 2002 19:47:48 +0000 Subject: [PATCH] Reconstitute paths with spaces [SVN r13468] --- msvc-tools.jam | 7 +++++++ v1/msvc-tools.jam | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/msvc-tools.jam b/msvc-tools.jam index 65bb51c1a..767c0a834 100644 --- a/msvc-tools.jam +++ b/msvc-tools.jam @@ -30,6 +30,13 @@ if ! $(MSVCDir) } else { + # This hack reconstitutes paths containing spaces as long as + # they don't contain any consecutive spaces. + while $(MSVCDir[2]) + { + MSVCDir = $(MSVCDir[1])" "$(MSVCDir[2]) $(MSVCDir[3-]) ; + } + VC_TOOL_PATH ?= "" ; # Don't clobber adjoining text if MSVCDir is already set } diff --git a/v1/msvc-tools.jam b/v1/msvc-tools.jam index 65bb51c1a..767c0a834 100644 --- a/v1/msvc-tools.jam +++ b/v1/msvc-tools.jam @@ -30,6 +30,13 @@ if ! $(MSVCDir) } else { + # This hack reconstitutes paths containing spaces as long as + # they don't contain any consecutive spaces. + while $(MSVCDir[2]) + { + MSVCDir = $(MSVCDir[1])" "$(MSVCDir[2]) $(MSVCDir[3-]) ; + } + VC_TOOL_PATH ?= "" ; # Don't clobber adjoining text if MSVCDir is already set }