Lines Matching defs:platform
29 """Returns True iff the target platform is Windows."""
34 """Returns True iff the target platform is macOS."""
39 """Returns True iff the target platform is Linux."""
44 """Returns True iff the target platform is host."""
62 def platform(self):
63 """Returns the target platform in the <os>-<arch> format."""
69 return PLATFORM_TO_TRIPLE[self.platform]
72 return self.platform
85 def __call__(self, platform):
86 return Target(self, *platform.split('-', 2))
90 return Target(self, self.m.platform.name.replace('win', 'windows'), {
99 }[self.m.platform.arch][self.m.platform.bits])