summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/compiler_argument_syntax.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-09 16:32:12 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-09 21:58:12 +0200
commit51aaa15bda0e955e45da014ca7720d038219eeff (patch)
tree366e47ee0c92e4e98854317cf513ddfdf3815d63 /docs/markdown/snippets/compiler_argument_syntax.md
parentf7e657629fe2e779c9485112eb31632db77db9e7 (diff)
downloadmeson-51aaa15bda0e955e45da014ca7720d038219eeff.tar.gz
Update everything for release 0.49.00.49.0
Diffstat (limited to 'docs/markdown/snippets/compiler_argument_syntax.md')
-rw-r--r--docs/markdown/snippets/compiler_argument_syntax.md22
1 files changed, 0 insertions, 22 deletions
diff --git a/docs/markdown/snippets/compiler_argument_syntax.md b/docs/markdown/snippets/compiler_argument_syntax.md
deleted file mode 100644
index 6ae32d48c..000000000
--- a/docs/markdown/snippets/compiler_argument_syntax.md
+++ /dev/null
@@ -1,22 +0,0 @@
-## new compiler method `get_argument_syntax`
-
-The compiler object now has `get_argument_syntax` method, which returns a
-string value of `gcc`, `msvc`, or an undefined value string value. This can be
-used to determine if a compiler uses gcc syntax (`-Wfoo`), msvc syntax
-(`/w1234`), or some other kind of arguments.
-
-```meson
-cc = meson.get_compiler('c')
-
-if cc.get_argument_syntax() == 'msvc'
- if cc.has_argument('/w1235')
- add_project_arguments('/w1235', language : ['c'])
- endif
-elif cc.get_argument_syntax() == 'gcc'
- if cc.has_argument('-Wfoo')
- add_project_arguments('-Wfoo', language : ['c'])
- endif
-elif cc.get_id() == 'some other compiler'
- add_project_arguments('--error-on-foo', language : ['c'])
-endif
-```