summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-06-01 19:52:46 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-02 22:08:32 +0900
commitcfe17520ba209c18ee1e39e36d50c5a01d6d0cd6 (patch)
tree0bb2596a388ff50d7758051c374b299b52120ac7
parentff222ac27afe712ef6ec2bb74c81cdde1a1fa176 (diff)
[DOC] Mention vsdevcmd.bat
-rw-r--r--doc/windows.md22
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/windows.md b/doc/windows.md
index cafd55ff2e..13c797875e 100644
--- a/doc/windows.md
+++ b/doc/windows.md
@@ -85,15 +85,31 @@ sh ../../ruby/configure -C --disable-install-doc --with-opt-dir=C:\Users\usernam
`win32\install-buildtools.cmd` is a batch file to install the
minimum requirements excluding the IDE etc.
-3. Please set environment variable `INCLUDE`, `LIB`, `PATH`
- to run required commands properly from the command line.
- These are set properly by `vcvarall*.bat` usually. You can run
+3. Please set environment variable `INCLUDE`, `LIB`, `PATH` to run
+ required commands properly from the command line. These are set
+ properly by `vsdevcmd.bat` or `vcvarall*.bat` usually. You can run
the following command to set them in your command line.
+ To native build:
+
```
cmd /k win32\vssetup.cmd
```
+ To cross build arm64 binary:
+
+ ```
+ cmd /k win32\vssetup.cmd -arch arm64
+ ```
+
+ To cross build x64 binary:
+
+ ```
+ cmd /k win32\vssetup.cmd -arch x64
+ ```
+
+ See `win32\vssetup.cmd -help` for other command line options.
+
**Note** building ruby requires following commands.
* `nmake`