| 1 |
name: add_global_arguments |
| 2 |
returns: void |
| 3 |
description: Adds global arguments to the compiler command line. |
| 4 |
|
| 5 |
notes: |
| 6 |
- Usually you should use [[add_project_arguments]] instead, |
| 7 |
because that works even when you project is used as a subproject. |
| 8 |
- You must pass always arguments individually `arg1, arg2, ...` |
| 9 |
rather than as a string `'arg1 arg2', ...` |
| 10 |
|
| 11 |
varargs: |
| 12 |
type: str |
| 13 |
name: Compiler argument |
| 14 |
description: The compiler arguments to add |
| 15 |
|
| 16 |
kwargs: |
| 17 |
language: |
| 18 |
type: list[str] |
| 19 |
required: true |
| 20 |
description: | |
| 21 |
Specifies the language(s) that the arguments should be |
| 22 |
applied to. If a list of languages is given, the arguments are added |
| 23 |
to each of the corresponding compiler command lines. Note that there |
| 24 |
is no way to remove an argument set in this way. If you have an |
| 25 |
argument that is only used in a subset of targets, you have to specify |
| 26 |
it in per-target flags. |
| 27 |
|
| 28 |
native: |
| 29 |
type: bool |
| 30 |
default: false |
| 31 |
since: 0.48.0 |
| 32 |
description: | |
| 33 |
A boolean specifying whether the arguments should be |
| 34 |
applied to the native or cross compilation. If `true` the arguments |
| 35 |
will only be used for native compilations. If `false` the arguments |
| 36 |
will only be used in cross compilations. If omitted, the flags are |
| 37 |
added to native compilations if compiling natively and cross |
| 38 |
compilations (only) when cross compiling. |