diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-12-15 07:40:43 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-12-19 12:03:55 -0500 |
commit | 5695dc0f1674211049b3952f8005cccc78411cdd (patch) | |
tree | 7bed9e714d54caa0c018bedcfeb41596bf6197b8 /docs/markdown/snippets | |
parent | 06821755d253a930ebe29bb27f55b442c1790fed (diff) | |
download | meson-5695dc0f1674211049b3952f8005cccc78411cdd.zip meson-5695dc0f1674211049b3952f8005cccc78411cdd.tar.gz meson-5695dc0f1674211049b3952f8005cccc78411cdd.tar.bz2 |
add compiler.get_linker_id() method
this can be useful for if/elif where linker behaviors must be
considered.
For example, clang with "link" vs gcc with "ld.bfd" etc.
ci for compiler.get_linker_id() method
doc
add @FeatureNew check
Co-Authored-By: Daniel Mensinger <daniel@mensinger-ka.de>
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/get_linker_id.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/get_linker_id.md b/docs/markdown/snippets/get_linker_id.md new file mode 100644 index 0000000..92a91a6 --- /dev/null +++ b/docs/markdown/snippets/get_linker_id.md @@ -0,0 +1,5 @@ +## compiler.get_linker_id() + +since 0.53.0, `compiler.get_linker_id()` allows retrieving a lowercase name for the linker. +Since each compiler family can typically use a variety of linkers depending on operating system, +this helps users define logic for corner cases not otherwise easily handled.
\ No newline at end of file |