aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-02-24 15:15:06 -0800
committerXavier Claessens <xclaesse@gmail.com>2020-03-04 14:07:27 -0500
commit1210a67f66df15a54fc7c65f7406bcd5391d15aa (patch)
tree9890464379ef921245c01bba0bcc5167b0e33b43 /docs/markdown/snippets
parenta46f0a620228f9acfbf2340d6d9a2d58229720aa (diff)
downloadmeson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.zip
meson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.tar.gz
meson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.tar.bz2
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
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/meson_compile_command.md21
1 files changed, 21 insertions, 0 deletions
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`