From 8d2e16d3b42185fd39fe34fbd4b8db3b0fa169b7 Mon Sep 17 00:00:00 2001 From: Steven Pitman Date: Tue, 16 Dec 2025 14:09:22 +0000 Subject: [PATCH 1/2] Fix package build failure when the compiler types not defined --- mypyc/build_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypyc/build_setup.py b/mypyc/build_setup.py index 8ac6e1918bba0..2354853b38083 100644 --- a/mypyc/build_setup.py +++ b/mypyc/build_setup.py @@ -48,7 +48,7 @@ def spawn(self, cmd, **kwargs) -> None: # type: ignore[no-untyped-def] new_cmd.extend(["-msimd128"]) else: compiler_type: str = self.compiler_type - extra_options = EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT[compiler_type] + extra_options = EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT.get(compiler_type, None) new_cmd = list(cmd) if X86_64 and extra_options is not None: # filenames are closer to the end of command line From 07356ae9ffd79b712df2114747676d566e0ad440 Mon Sep 17 00:00:00 2001 From: Steven Pitman Date: Tue, 16 Dec 2025 15:09:39 +0000 Subject: [PATCH 2/2] Sync build_setup.py with lib-rt --- mypyc/lib-rt/build_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypyc/lib-rt/build_setup.py b/mypyc/lib-rt/build_setup.py index 8ac6e1918bba0..2354853b38083 100644 --- a/mypyc/lib-rt/build_setup.py +++ b/mypyc/lib-rt/build_setup.py @@ -48,7 +48,7 @@ def spawn(self, cmd, **kwargs) -> None: # type: ignore[no-untyped-def] new_cmd.extend(["-msimd128"]) else: compiler_type: str = self.compiler_type - extra_options = EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT[compiler_type] + extra_options = EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT.get(compiler_type, None) new_cmd = list(cmd) if X86_64 and extra_options is not None: # filenames are closer to the end of command line