From 32e0bcc516e2a6160a4884ae250e817dde3fed2a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 20 Nov 2019 11:08:42 -0800 Subject: docs: Update docs for LD and ld entries --- docs/markdown/Cross-compilation.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/markdown/Cross-compilation.md') diff --git a/docs/markdown/Cross-compilation.md b/docs/markdown/Cross-compilation.md index 43e1382eb..d94d487d9 100644 --- a/docs/markdown/Cross-compilation.md +++ b/docs/markdown/Cross-compilation.md @@ -87,6 +87,7 @@ this: [binaries] c = '/usr/bin/i586-mingw32msvc-gcc' cpp = '/usr/bin/i586-mingw32msvc-g++' +ld = 'gold' ar = '/usr/i586-mingw32msvc/bin/ar' strip = '/usr/i586-mingw32msvc/bin/strip' pkgconfig = '/usr/bin/i586-mingw32msvc-pkg-config' @@ -102,6 +103,12 @@ of a wrapper, these lines are all you need to write. Meson will automatically use the given wrapper when it needs to run host binaries. This happens e.g. when running the project's test suite. +ld is special because it is compiler specific. For compilers like gcc and +clang which are used to invoke the linker this is a value to pass to their +"choose the linker" argument (-fuse-ld= in this case). For compilers like +MSVC and Clang-Cl, this is the path to a linker for meson to invoke, such as +`link.exe` or `lld-link.exe`. Support for ls is *new in 0.53.0* + The next section lists properties of the cross compiler and its target system, and thus properties of host system of what we're building. It looks like this: -- cgit v1.2.3