diff options
author | Daniel Stone <daniels@collabora.com> | 2017-04-12 16:00:48 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2017-08-31 20:24:20 +0100 |
commit | e1ffae0580259343be7665c6b2f014fe71b8c05c (patch) | |
tree | 24462ab941900841b2d1e320e2c02fbef0dd992e /docs/markdown/Unit-tests.md | |
parent | 7fb1973caca249e284ba6bec7e7a7b2439f9721f (diff) | |
download | meson-e1ffae0580259343be7665c6b2f014fe71b8c05c.zip meson-e1ffae0580259343be7665c6b2f014fe71b8c05c.tar.gz meson-e1ffae0580259343be7665c6b2f014fe71b8c05c.tar.bz2 |
Add Compiler.get_supported_arguments()
Add a helper for the common pattern of:
args_to_use = []
foreach arg : candidate_args
if cc.has_argument(arg)
args_to_use += arg
endif
endforeach
Replaced with:
args_to_use = cc.get_supported_arguments(candidate_args)
Diffstat (limited to 'docs/markdown/Unit-tests.md')
0 files changed, 0 insertions, 0 deletions