Skip to content

Commit cfe1752

Browse files
committed
[DOC] Mention vsdevcmd.bat
1 parent ff222ac commit cfe1752

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

doc/windows.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,31 @@ sh ../../ruby/configure -C --disable-install-doc --with-opt-dir=C:\Users\usernam
8585
`win32\install-buildtools.cmd` is a batch file to install the
8686
minimum requirements excluding the IDE etc.
8787

88-
3. Please set environment variable `INCLUDE`, `LIB`, `PATH`
89-
to run required commands properly from the command line.
90-
These are set properly by `vcvarall*.bat` usually. You can run
88+
3. Please set environment variable `INCLUDE`, `LIB`, `PATH` to run
89+
required commands properly from the command line. These are set
90+
properly by `vsdevcmd.bat` or `vcvarall*.bat` usually. You can run
9191
the following command to set them in your command line.
9292

93+
To native build:
94+
9395
```
9496
cmd /k win32\vssetup.cmd
9597
```
9698
99+
To cross build arm64 binary:
100+
101+
```
102+
cmd /k win32\vssetup.cmd -arch arm64
103+
```
104+
105+
To cross build x64 binary:
106+
107+
```
108+
cmd /k win32\vssetup.cmd -arch x64
109+
```
110+
111+
See `win32\vssetup.cmd -help` for other command line options.
112+
97113
**Note** building ruby requires following commands.
98114
99115
* `nmake`

0 commit comments

Comments
 (0)