Wasm support! And optional definitive names

This commit is contained in:
2025-10-13 01:34:21 +13:00
parent fc07e157c8
commit 22484aefa5
2 changed files with 19 additions and 2 deletions

View File

@@ -26,11 +26,13 @@ class Platform(Enum):
LINUX_x86 = PlatformInfo("linux", "clang", "x86", "", "-DSPEC_LINUX")
LINUX_x86_64_V4 = PlatformInfo("linux", "clang", "x86-64-v4", "", "-DSPEC_LINUX")
MACOS = PlatformInfo("macos", "gcc", "arm", "", "-DSPEC_DARWIN")
WASM = PlatformInfo("wasm", "emcc", "", "", "-DSPEC_WASM")
@dataclass
class Build:
name: str
type: BuildType
platform: PlatformInfo
definitive_name: str = field(default_factory=str)
additional_instructions: List[str] = field(default_factory=list)