|
|
@ -968,15 +968,22 @@ class OptlinkDynamicLinker(VisualStudioLikeLinkerMixin, DynamicLinker): |
|
|
|
|
|
|
|
|
|
|
|
"""Digital Mars dynamic linker for windows.""" |
|
|
|
"""Digital Mars dynamic linker for windows.""" |
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, for_machine: mesonlib.MachineChoice, |
|
|
|
def __init__(self, exelist: T.List[str], for_machine: mesonlib.MachineChoice, |
|
|
|
*, version: str = 'unknown version'): |
|
|
|
*, version: str = 'unknown version'): |
|
|
|
# Use optlink instead of link so we don't interfer with other link.exe |
|
|
|
# Use optlink instead of link so we don't interfer with other link.exe |
|
|
|
# implementations. |
|
|
|
# implementations. |
|
|
|
super().__init__('optlink', ['optlink.exe'], for_machine, '', [], version=version) |
|
|
|
super().__init__('optlink', exelist, for_machine, '', [], version=version) |
|
|
|
|
|
|
|
|
|
|
|
def get_allow_undefined_args(self) -> T.List[str]: |
|
|
|
def get_allow_undefined_args(self) -> T.List[str]: |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_debugfile_args(self, targetfile: str) -> T.List[str]: |
|
|
|
|
|
|
|
# Optlink does not generate pdb files. |
|
|
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_always_args(self) -> T.List[str]: |
|
|
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CudaLinker(PosixDynamicLinkerMixin, DynamicLinker): |
|
|
|
class CudaLinker(PosixDynamicLinkerMixin, DynamicLinker): |
|
|
|
"""Cuda linker (nvlink)""" |
|
|
|
"""Cuda linker (nvlink)""" |
|
|
|