[PATCH v2 1/2] doc: enhanced build instructions on Windows
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Sat Oct 26 23:03:18 CEST 2024
2024-10-25 12:30 (UTC-0700), Andre Muezerie:
> -Open a 'Developer PowerShell for VS 2022' prompt from the start menu.
> +Open a 'Visual Studio Developer Command Prompt'. When doing so, it's recommended
> +to specify the Target Architecture (-arch) and the Host Architecture (-host_arch).
It seems that Microsoft documentation [1] uses "target" and "host" terms
for what Meson documentation [2] calls "host" and "build" respectively.
This deserves a notice to avoid confusion.
[1]: https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022
[2]: https://mesonbuild.com/Cross-compilation.html
Why manually specifying architectures is recommended?
If it is mandatory, please use imperative so that no one skips this step.
However, Meson has cross-compilation features, don't they work
(cross-compilation from Windows has never been considered yet)?
> The developer prompt will configure the environment
> to select the appropriate compiler, linker and SDK paths
> required to build with Visual Studio 2022.
>
> .. code-block:: console
>
> + "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
> +
> +Compile the code from the developer prompt.
> +
> +.. code-block:: console
> +
> cd C:\Users\me\dpdk
> meson setup -Denable_stdatomic=true build
> meson compile -C build
More information about the dev
mailing list