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

14 lines
353 B
Python

# build/platform/windows.py
from .base import Platform
from ..compiler.msvc import MSVCCompiler
from ..config import MSVC_FLAGS, MSVC_TEST_FLAGS
class WindowsPlatform(Platform):
name = "windows"
def compiler(self):
return MSVCCompiler()
def cflags(self, test: bool = False):
return MSVC_TEST_FLAGS if test else MSVC_FLAGS