aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Hawson <18214721+GertyP@users.noreply.github.com>2023-06-15 10:50:37 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2023-06-27 20:22:11 +0300
commit8e879911ecc3e3934da552d9b936604a00abc144 (patch)
tree0da7fe5be08a355824e2912abc4729d26deaf716
parentc900e6b0b321ceed4f269965741201f835d00a89 (diff)
downloadmeson-8e879911ecc3e3934da552d9b936604a00abc144.zip
meson-8e879911ecc3e3934da552d9b936604a00abc144.tar.gz
meson-8e879911ecc3e3934da552d9b936604a00abc144.tar.bz2
Added a little more useful info to 'link_whole' documentation, describing the use of /LINKWHOLE with MSVC and the behaviour of re-exporting symbols of individual objects in a static library.
-rw-r--r--docs/yaml/functions/_build_target_base.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml
index 79924d8..724b6a4 100644
--- a/docs/yaml/functions/_build_target_base.yaml
+++ b/docs/yaml/functions/_build_target_base.yaml
@@ -123,8 +123,10 @@ kwargs:
type: list[lib | custom_tgt | custom_idx]
since: 0.40.0
description: |
- Links all contents of the given static libraries
- whether they are used by not, equivalent to the `-Wl,--whole-archive` argument flag of GCC.
+ Links all contents of the given static libraries whether they are used or
+ not, equivalent to the `-Wl,--whole-archive` argument flag of GCC, or the
+ '/WHOLEARCHIVE' MSVC linker option. This allows the linked target to
+ re-export symbols from all objects in the static libraries.
*(since 0.41.0)* If passed a list that list will be flattened.