From 1210a67f66df15a54fc7c65f7406bcd5391d15aa Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 24 Feb 2020 15:15:06 -0800 Subject: mesonbuild: Add mcompile command This is tested working with both msbuild and ninja/samu. Since our xcode support is pretty much broken I didn't bother. Fixes #6670 --- docs/markdown/snippets/meson_compile_command.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/markdown/snippets/meson_compile_command.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/meson_compile_command.md b/docs/markdown/snippets/meson_compile_command.md new file mode 100644 index 0000000..e029ff8 --- /dev/null +++ b/docs/markdown/snippets/meson_compile_command.md @@ -0,0 +1,21 @@ +## Backend agnostic compile command + +A new `meson compile` command has been added to support backend agnostic +compilation. It accepts two arguments, `-j` and `-l`, which are used if +possible (`-l` does nothing with msbuild). A `-j` or `-l` value < 1 lets the +backend decide how many threads to use. For msbuild this means `-m`, for +ninja it means passing no arguments. + +```console +meson builddir --backend vs +meson compile -C builddir -j0 # this is the same as `msbuild builddir/my.sln -m` +``` + +```console +meson builddir +meson compile -C builddir -j3 # this is the same as `ninja -C builddir -j3` +``` + +Additionally `meson compile` provides a `--clean` switch to clean the project. + +A complete list of arguments is always documented via `meson compile --help` -- cgit v1.1