3636from mypy .util import write_junit_xml
3737from mypyc .annotate import generate_annotated_html
3838from mypyc .codegen import emitmodule
39- from mypyc .common import IS_FREE_THREADED , RUNTIME_C_FILES , X86_64 , shared_lib_name
39+ from mypyc .common import IS_FREE_THREADED , RUNTIME_C_FILES , shared_lib_name
4040from mypyc .errors import Errors
4141from mypyc .ir .pprint import format_modules
4242from mypyc .namegen import exported_name
@@ -123,19 +123,19 @@ class ModDesc(NamedTuple):
123123 from distutils import ccompiler , sysconfig
124124
125125EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT = {
126- "unix" : {
127- "base64/arch/ssse3" : "-mssse3" ,
128- "base64/arch/sse41" : "-msse4.1" ,
129- "base64/arch/sse42" : "-msse4.2" ,
130- "base64/arch/avx2" : "-mavx2" ,
131- "base64/arch/avx" : "-mavx" ,
132- },
133- "msvc" : {
134- "base64/arch/sse42" : "/arch:SSE4.2" ,
135- "base64/arch/avx2" : "/arch:AVX2" ,
136- "base64/arch/avx" : "/arch:AVX" ,
137- }
138- }
126+ "unix" : {
127+ "base64/arch/ssse3" : "-mssse3" ,
128+ "base64/arch/sse41" : "-msse4.1" ,
129+ "base64/arch/sse42" : "-msse4.2" ,
130+ "base64/arch/avx2" : "-mavx2" ,
131+ "base64/arch/avx" : "-mavx" ,
132+ },
133+ "msvc" : {
134+ "base64/arch/sse42" : "/arch:SSE4.2" ,
135+ "base64/arch/avx2" : "/arch:AVX2" ,
136+ "base64/arch/avx" : "/arch:AVX" ,
137+ },
138+ }
139139
140140
141141def spawn (self : ccompiler .CCompiler , cmd : Iterable [str ], ** kwargs : Any ) -> None :
@@ -152,7 +152,7 @@ def spawn(self: ccompiler.CCompiler, cmd: Iterable[str], **kwargs: Any) -> None:
152152
153153 for path in extra_options .keys ():
154154 if path in str (argument ):
155- if compiler_type == ' bcpp' :
155+ if compiler_type == " bcpp" :
156156 # Borland accepts a source file name at the end,
157157 # insert the options before it
158158 new_cmd [- 1 :- 1 ] = extra_options [path ]
0 commit comments