aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers/linkers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-07-25 10:11:31 -0700
committerXavier Claessens <xclaesse@gmail.com>2023-09-06 10:01:52 -0400
commit15811e362e0d38981bdb62c0fbc50356b660b6fd (patch)
treef0b397f424da15edd57ca15d1383f043314cb864 /mesonbuild/linkers/linkers.py
parent84466b735986c9f548899f7e7669be782de091e8 (diff)
downloadmeson-15811e362e0d38981bdb62c0fbc50356b660b6fd.zip
meson-15811e362e0d38981bdb62c0fbc50356b660b6fd.tar.gz
meson-15811e362e0d38981bdb62c0fbc50356b660b6fd.tar.bz2
backends/ninja: run `ranlib -c $out` when using the apple ar
Apple's AR is old, and doesn't add externed symbols to the symbol table, instead relying on the user calling ranlib with -c. We need to do that for the user
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r--mesonbuild/linkers/linkers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 9176090..0c2bf73 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -349,6 +349,8 @@ class VisualStudioLinker(VisualStudioLikeLinker, StaticLinker):
"""Microsoft's lib static linker."""
+ id = 'lib'
+
def __init__(self, exelist: T.List[str], machine: str):
StaticLinker.__init__(self, exelist)
VisualStudioLikeLinker.__init__(self, machine)
@@ -358,6 +360,8 @@ class IntelVisualStudioLinker(VisualStudioLikeLinker, StaticLinker):
"""Intel's xilib static linker."""
+ id = 'xilib'
+
def __init__(self, exelist: T.List[str], machine: str):
StaticLinker.__init__(self, exelist)
VisualStudioLikeLinker.__init__(self, machine)