diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-07-22 11:02:23 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-08-14 13:13:23 -0700 |
commit | cd134b78c08816e92412c5a7f5907d8f40195dbb (patch) | |
tree | c51dd72a41b035d4c99728f2281abd9047097a2b /mesonbuild | |
parent | 5ababa413c8e89d6ecfc291a5b59f0032ddb4b4d (diff) | |
download | meson-cd134b78c08816e92412c5a7f5907d8f40195dbb.zip meson-cd134b78c08816e92412c5a7f5907d8f40195dbb.tar.gz meson-cd134b78c08816e92412c5a7f5907d8f40195dbb.tar.bz2 |
linkers: Add the armclang dynamic linker
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/linkers.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 0cc3d76..52c65c6 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -692,3 +692,18 @@ class ArmDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): def get_allow_undefined_args(self) -> typing.List[str]: return [] + + +class ArmClangDynamicLinker(ArmDynamicLinker): + + """Linker used with ARM's clang fork. + + The interface is similar enough to the old ARM ld that it inherits and + extends a few things as needed. + """ + + def export_dynamic_args(self, env: 'Environment') -> typing.List[str]: + return ['--export_dynamic'] + + def import_library_args(self, implibname: str) -> typing.List[str]: + return ['--symdefs=' + implibname] |