aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-07-25 09:56:52 -0700
committerDylan Baker <dylan@pnwbakers.com>2022-07-25 15:36:59 -0700
commitd6b9d431ec071f54796c5ed3173efa5ad1b86db3 (patch)
treea8232e4ba45366efd098d15e950112ddf345632b /mesonbuild/compilers
parent5b2f921d524657605daf0ddedc4d6088c5726056 (diff)
downloadmeson-d6b9d431ec071f54796c5ed3173efa5ad1b86db3.zip
meson-d6b9d431ec071f54796c5ed3173efa5ad1b86db3.tar.gz
meson-d6b9d431ec071f54796c5ed3173efa5ad1b86db3.tar.bz2
linkers: Add a representation for the Apple AR Linker
Which is old and annoying and doesn't expose global symbols by default, so we need a work around. see: https://github.com/mesonbuild/meson/pull/10587 see: https://lists.gnu.org/archive/html/libtool/2002-07/msg00025.html
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/detect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py
index 5306e87..063439f 100644
--- a/mesonbuild/compilers/detect.py
+++ b/mesonbuild/compilers/detect.py
@@ -24,6 +24,7 @@ from ..linkers import (
guess_win_linker,
guess_nix_linker,
AIXArLinker,
+ AppleArLinker,
ArLinker,
ArmarLinker,
ArmClangDynamicLinker,
@@ -343,7 +344,7 @@ def detect_static_linker(env: 'Environment', compiler: Compiler) -> StaticLinker
if p.returncode == 0:
return ArLinker(compiler.for_machine, linker)
if p.returncode == 1 and err.startswith('usage'): # OSX
- return ArLinker(compiler.for_machine, linker)
+ return AppleArLinker(compiler.for_machine, linker)
if p.returncode == 1 and err.startswith('Usage'): # AIX
return AIXArLinker(linker)
if p.returncode == 1 and err.startswith('ar: bad option: --'): # Solaris