YREA-SLS/SLS_C/sls_build/platform/macos.py

14 lines
377 B
Python

# build/platform/macos.py
from .base import Platform
from ..compiler.clang import ClangCompiler
from ..config import MACOS_FLAGS, TEST_FLAGS
class MacOSPlatform(Platform):
name = "macos"
def compiler(self):
return ClangCompiler()
def cflags(self, test: bool = False):
return (TEST_FLAGS + ["-mmacosx-version-min=10.13"]) if test else MACOS_FLAGS