aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-17 23:26:53 +0300
committerGitHub <noreply@github.com>2018-04-17 23:26:53 +0300
commit8ee1e49ae683cbd7eb10da37327062a490cbee70 (patch)
treee3c4d8560ef9f345c75f14c8543ba59535070c1e /docs/markdown/Reference-manual.md
parent3fc1ca8687a5030577ab2ba6449d7028c6a5b884 (diff)
parentbd37afeeea0283dac1051b7d9bedf099252c1d19 (diff)
downloadmeson-8ee1e49ae683cbd7eb10da37327062a490cbee70.zip
meson-8ee1e49ae683cbd7eb10da37327062a490cbee70.tar.gz
meson-8ee1e49ae683cbd7eb10da37327062a490cbee70.tar.bz2
Merge pull request #3353 from xclaesse/has-link-argument
Add has_link_argument() and friends
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md24
1 files changed, 20 insertions, 4 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index fad6a3c..42abe75 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1508,7 +1508,11 @@ the following methods:
- `first_supported_argument(list_of_strings)`, given a list of
strings, returns the first argument that passes the `has_argument`
- test above or an empty array if none pass.
+ test or an empty array if none pass.
+
+- `first_supported_link_argument(list_of_strings)` *(added 0.46.0)*, given a
+ list of strings, returns the first argument that passes the
+ `has_link_argument` test or an empty array if none pass.
- `get_define(definename)` returns the given preprocessor symbol's
value as a string or empty string if it is not defined.
@@ -1520,11 +1524,19 @@ the following methods:
an array containing only the arguments supported by the compiler,
as if `has_argument` were called on them individually.
+- `get_supported_link_arguments(list_of_string)` *(added 0.46.0)* returns
+ an array containing only the arguments supported by the linker,
+ as if `has_link_argument` were called on them individually.
+
- `has_argument(argument_name)` returns true if the compiler accepts
the specified command line argument, that is, can compile code
- without erroring out or printing a warning about an unknown flag,
- you can specify external dependencies to use with `dependencies`
- keyword argument.
+ without erroring out or printing a warning about an unknown flag.
+
+- `has_link_argument(argument_name)` *(added 0.46.0)* returns true if the linker
+ accepts the specified command line argument, that is, can compile and link
+ code without erroring out or printing a warning about an unknown flag. Link
+ arguments will be passed to the compiler, so should usually have the `-Wl,`
+ prefix. On VisualStudio a `/link` argument will be prepended.
- `has_function(funcname)` returns true if the given function is
provided by the standard library or a library passed in with the
@@ -1559,6 +1571,10 @@ the following methods:
`has_argument` but takes multiple arguments and uses them all in a
single compiler invocation, available since 0.37.0.
+- `has_multi_link_arguments(arg1, arg2, arg3, ...)` *(added 0.46.0)* is the same
+ as `has_link_argument` but takes multiple arguments and uses them all in a
+ single compiler invocation.
+
- `has_type(typename)` returns true if the specified token is a type,
you can specify external dependencies to use with `dependencies`
keyword argument.