diff --git a/mypyc/build_setup.py b/mypyc/build_setup.py index 8ac6e1918bba..2354853b3808 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 diff --git a/mypyc/lib-rt/build_setup.py b/mypyc/lib-rt/build_setup.py index 8ac6e1918bba..2354853b3808 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