* backends/vs: Only set platform_toolset if it isn't already set
* interpreter: set backend up after the compiler
Otherwise we won't be able to check which VS toolchain to use.
* docs/using-visual-studio: wrap lines
* docs: recommend the py launcher instead of python3 for windows
* set backend.environment when building a dummy version
* backends/vs: Add support for clang-cl with vs2017 and vs2019 backends
* backends/vs: Add support for ICL (19.x) with vs2015 and vs2017 backends
@ -4,13 +4,41 @@ short-description: How to use meson in Visual Studio
# Using with Visual Studio
In order to generate Visual Studio projects, Meson needs to know the settings of your installed version of Visual Studio. The only way to get this information is to run Meson under the Visual Studio Command Prompt. The steps to set it up are as follows:
In order to generate Visual Studio projects, Meson needs to know the settings
of your installed version of Visual Studio. The only way to get this
information is to run Meson under the Visual Studio Command Prompt. The steps
to set it up are as follows:
1. Click on start menu and select "Visual Studio 2015 Command Prompt"
If you wish to use the Ninja backend instead of vs2015, pass `--backend ninja`. At the time of writing the Ninja backend is more mature than the VS backend so you might want to use it for serious work.
If you wish to use the Ninja backend instead of vs2015, pass `--backend
ninja`. At the time of writing the Ninja backend is more mature than the VS
backend so you might want to use it for serious work.
This assumes Python3 is in your `PATH`, which is highly recommended.
This assumes the py launcher is in your `PATH`, which is highly recommended.
# Using Clang-CL with Visual Studio
*(new in 0.52.0)*
You will first need to get a copy of llvm+clang for Windows, such versions
are available from a number of sources, including the llvm website. Then you