add_global_link_arguments()
Adds global arguments to the linker command line.
Like add_global_arguments() but the arguments are passed to the linker.
Signature
# Adds global arguments to the linker command line
void add_global_link_arguments(
str Linker argument..., # The linker arguments to add
# Keyword arguments:
language : array[str] [required] # Specifies the language(s) that the arguments should be
native : bool # A boolean specifying whether the arguments should be
)
Arguments
The
function accepts between 0 and infinity variadic
arguments (Linker argument...) of type .str
The linker arguments to add
The function add_global_link_arguments()
accepts the following keyword arguments:
| Name | Type | Description | Tags |
|---|---|---|---|
language |
array[str] |
Specifies the language(s) that the arguments should be applied to. If an array of languages is given, the arguments are added to each of the corresponding compiler command lines. Note that there is no way to remove an argument set in this way. If you have an argument that is only used in a subset of targets, you have to specify it in per-target flags. |
|
native |
bool |
A boolean specifying whether the arguments should be
applied to the native or cross compilation. If |
(since 0.48.0)
|
The results of the search are