linkers: Always use mesonlib namespace

pull/5700/head
Dylan Baker 6 years ago committed by Nirbheek Chauhan
parent 5d7395673d
commit e0f036f3a4
  1. 5
      mesonbuild/linkers.py

@ -14,7 +14,6 @@
import typing
from .mesonlib import Popen_safe, is_windows
from . import mesonlib
if typing.TYPE_CHECKING:
@ -128,7 +127,7 @@ class ArLinker(StaticLinker):
def __init__(self, exelist: typing.List[str]):
super().__init__(exelist)
self.id = 'ar'
pc, stdo = Popen_safe(self.exelist + ['-h'])[0:2]
pc, stdo = mesonlib.Popen_safe(self.exelist + ['-h'])[0:2]
# Enable deterministic builds if they are available.
if '[D]' in stdo:
self.std_args = ['csrD']
@ -167,7 +166,7 @@ class DLinker(StaticLinker):
return ['-of=' + target]
def get_linker_always_args(self) -> typing.List[str]:
if is_windows():
if mesonlib.is_windows():
if self.arch == 'x86_64':
return ['-m64']
elif self.arch == 'x86_mscoff' and self.id == 'dmd':

Loading…
Cancel
Save