forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GCC's null_terminated_string_arg function attribute
This is new as of 14.1.
- Loading branch information
1 parent
a0ff145
commit c5ade13
Showing
4 changed files
with
72 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Added support for GCC's `null_terminated_string_arg` function attribute | ||
|
||
You can now check if a compiler support the `null_terminated_string_arg` | ||
function attribute via the `has_function_attribute()` method on the | ||
[[@compiler]] object. | ||
|
||
```meson | ||
cc = meson.get_compiler('c') | ||
if cc.has_function_attribute('null_terminated_string_arg') | ||
# We have it... | ||
endif | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters