summaryrefslogtreecommitdiff
path: root/doc/windows.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/windows.md')
-rw-r--r--doc/windows.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/windows.md b/doc/windows.md
index 8159b25861..2020eec9cf 100644
--- a/doc/windows.md
+++ b/doc/windows.md
@@ -2,9 +2,9 @@
Ruby supports a few native build platforms for Windows.
-* mswin: Build using Microsoft Visual C++ compiler
+* mswin: Build using Microsoft Visual C++ compiler with vcruntimeXXX.dll
* mingw-msvcrt: Build using compiler for Mingw with msvcrtXX.dll
-* mingw-ucrt: Build using compiler for Mingw with vcruntime.dll
+* mingw-ucrt: Build using compiler for Mingw with Windows Universal CRT
## Building Ruby using Mingw with UCRT
@@ -19,7 +19,7 @@ Ruby core development can be done either in Windows `cmd` like:
```
ridk enable ucrt64
-pacman -S --needed %MINGW_PACKAGE_PREFIX%-openssl %MINGW_PACKAGE_PREFIX%-libyaml
+pacman -S --needed %MINGW_PACKAGE_PREFIX%-openssl %MINGW_PACKAGE_PREFIX%-libyaml %MINGW_PACKAGE_PREFIX%-libffi
cd c:\
mkdir work
@@ -38,7 +38,7 @@ or in MSYS2 `bash` like:
ridk enable ucrt64
bash
-pacman -S --needed $MINGW_PACKAGE_PREFIX-openssl $MINGW_PACKAGE_PREFIX-libyaml
+pacman -S --needed $MINGW_PACKAGE_PREFIX-openssl $MINGW_PACKAGE_PREFIX-libyaml $MINGW_PACKAGE_PREFIX-libffi
cd /c/
mkdir work
@@ -59,9 +59,9 @@ make
### Requirement
-1. Windows 7 or later.
+1. Windows 10/Windows Server 2016 or later.
-2. Visual C++ 12.0 (2013) or later.
+2. Visual C++ 14.0 (2015) or later.
**Note** if you want to build x64 version, use native compiler for
x64.
@@ -80,7 +80,7 @@ make
4. If you want to build from GIT source, following commands are required.
* patch
* sed
- * ruby 2.0 or later
+ * ruby 3.0 or later
You can use [scoop](https://scoop.sh/) to install them like:
@@ -88,10 +88,11 @@ make
scoop install git ruby sed patch
```
-5. You need to install required libraries using [vcpkg](https://vcpkg.io/) like:
+5. You need to install required libraries using [vcpkg](https://vcpkg.io/) on
+ directory of ruby repository like:
```
- vcpkg --triplet x64-windows install openssl libffi libyaml zlib
+ vcpkg --triplet x64-windows install
```
6. Enable Command Extension of your command line. It's the default behavior
@@ -117,7 +118,7 @@ make
executable without console window if also you want.
3. You need specify vcpkg directory to use `--with-opt-dir`
- option like `configure --with-opt-dir=C:\vcpkg\installed\x64-windows`
+ option like `win32\configure.bat --with-opt-dir=vcpkg_installed\x64-windows`
4. Run `nmake up` if you are building from GIT source.