Skip to content

Commit b320842

Browse files
jeffhostetlerdscho
authored andcommitted
find_vs_env.bat: Fix bin dir path used by msys
Completely convert the pathname expoted in the %msvc_bin_dir_msys% variable to MSYS format with forward slashes rather than a mixture of forward and back slashes. This solves an obscure problem observed by some developers: [...] http-push.c CC remote-curl.o remote-curl.c * new script parameters GEN git-instaweb sed: -e expression #7, char 155: invalid reference \2 on `s' command's RHS make: *** [Makefile:2023: git-instaweb] Error 1 Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 86a21f5 commit b320842

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compat/vcbuild/find_vs_env.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ REM ================================================================
154154
REM Include DOS-style and BASH-style path for bin dir.
155155

156156
echo msvc_bin_dir=%msvc_bin_dir%
157-
echo msvc_bin_dir_msys=%msvc_bin_dir:C:=/C%
157+
SET X1=%msvc_bin_dir:C:=/C%
158+
SET X2=%X1:\=/%
159+
echo msvc_bin_dir_msys=%X2%
158160

159161
echo msvc_includes=%msvc_includes%
160162
echo msvc_libs=%msvc_libs%

0 commit comments

Comments
 (0)