diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-12-01 12:17:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-12-01 17:31:10 +0900 |
commit | 96fac34797b3cf5d020cef8546cc37c6733c88f2 (patch) | |
tree | ddac369412b416c2abb60a34acd5a3b61bbeb524 /win32 | |
parent | 029174a402b5f51f58cec4e16a134fc4fdf17553 (diff) |
Win32: Accept slashes in --with-opt-dir argument
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12225
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/configure.bat | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win32/configure.bat b/win32/configure.bat index f3d350f8df..45e140d22d 100755 --- a/win32/configure.bat +++ b/win32/configure.bat @@ -1,5 +1,6 @@ @echo off
@setlocal disabledelayedexpansion
+set PROMPT=$E[94m+$E[m$S
set witharg=
for %%I in (%0) do if /%%~dpI/ == /%CD%\/ (
@@ -23,6 +24,8 @@ echo>%config_make% # CONFIGURE :loop
set opt=%1
if "%1" == "" goto :end
+if "%1" == "--debug-configure" (echo on & shift & goto :loop)
+if "%1" == "--no-debug-condigure" (echo off & shift & goto :loop)
if "%1" == "--prefix" goto :prefix
if "%1" == "--srcdir" goto :srcdir
if "%1" == "srcdir" goto :srcdir
@@ -243,7 +246,8 @@ goto :loop ; :opt-dir
set opt=%~2
for %%I in (%opt:;= %) do (
- pushd %%I && (
+ set d=%%I
+ call pushd %%d:/=\%% && (
call set XINCFLAGS=%%XINCFLAGS%% -I%%CD:\=/%%/include
call set XLDFLAGS=%%XLDFLAGS%% -libpath:%%CD:\=/%%/lib
popd
|