From af69421c91abc49390e8741870fac63513efbc0b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 11 Apr 2025 10:49:26 +0900 Subject: [PATCH] Added instruction for MSYS2 without RubyInstaller-Devkit --- doc/windows.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/windows.md b/doc/windows.md index 34a4a15f3d..5f2dda2252 100644 --- a/doc/windows.md +++ b/doc/windows.md @@ -53,6 +53,13 @@ cd build make ``` +If you have other MSYS2 environment via other package manager like `scoop`, you need to specify `$MINGW_PACKAGE_PREFIX` is `mingw-w64-ucrt-x86_64`. +And you need to add `--with-opt-dir` option to `configure` command like: + +```batch +sh ../../ruby/configure -C --disable-install-doc --with-opt-dir=C:\Users\username\scoop\apps\msys2\current\ucrt64 +``` + [RubyInstaller-Devkit]: https://rubyinstaller.org/ [git-for-windows]: https://gitforwindows.org/ [VSCode]: https://code.visualstudio.com/