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/Reference-tables.md | |
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/Reference-tables.md')
-rw-r--r-- | docs/markdown/Reference-tables.md | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index 260ae30..61f4803 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -31,6 +31,19 @@ These are return values of the `get_id` (Compiler family) and | sun | Sun Fortran compiler | | | valac | Vala compiler | | +## Linker ids + +These are return values of the `get_linker_id` (Linker family) method in a compiler object. + +| Value | Linker family | +| ----- | --------------- | +| ld.bfd | GNU Compiler Collection | +| {ld.bfd,lld} | Clang non-Windows | +| link | MSVC, Clang-cl, clang Windows | +| pgi | Portland/Nvidia PGI | +| {ld.bfd,gold,xild} | Intel compiler non-Windows | +| xilink | Intel-cl Windows | + ## Script environment variables | Value | Comment | @@ -41,15 +54,14 @@ These are return values of the `get_id` (Compiler family) and | MESON_SOURCE_ROOT | Absolute path to the source dir | | MESON_SUBDIR | Current subdirectory, only set for `run_command` | - ## CPU families These are returned by the `cpu_family` method of `build_machine`, `host_machine` and `target_machine`. For cross compilation they are set in the cross file. -| Value | Comment | -| ----- | ------- | +| Value | Comment | +| ----- | ------- | | aarch64 | 64 bit ARM processor | | alpha | DEC Alpha processor | | arc | 32 bit ARC processor | @@ -104,7 +116,6 @@ These are provided by the `.system()` method call. Any string not listed above is not guaranteed to remain stable in future releases. - ## Language arguments parameter names These are the parameter names for passing language specific arguments to your build target. |