2021-12-01 05:02:11 -06:00
|
|
|
# vcvarsall
|
|
|
|
|
2023-05-30 20:37:28 +02:00
|
|
|
> Setup the environment variables required for using the Microsoft Visual Studio tools from the command-line.
|
2021-12-01 05:02:11 -06:00
|
|
|
> The path of `vcvarsall` for a certain Visual Studio installation can be found using `vswhere`.
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/cpp/build/building-on-the-command-line>.
|
2021-12-01 05:02:11 -06:00
|
|
|
|
|
|
|
- Setup the environment for native x64:
|
|
|
|
|
|
|
|
`vcvarsall x64`
|
|
|
|
|
|
|
|
- Setup the environment for cross-compiled native x86 from the x64 host:
|
|
|
|
|
|
|
|
`vcvarsall x64_x86`
|
|
|
|
|
|
|
|
- Setup the environment for cross-compiled native Arm x64 from the x64 host:
|
|
|
|
|
|
|
|
`vcvarsall x64_arm64`
|
|
|
|
|
|
|
|
- Setup the environment for native UWP x64:
|
|
|
|
|
|
|
|
`vcvarsall x64 uwp`
|