Skip to content

Commit b611c27

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 29de283 commit b611c27

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

mypyc/build.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from mypy.util import write_junit_xml
3737
from mypyc.annotate import generate_annotated_html
3838
from 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
4040
from mypyc.errors import Errors
4141
from mypyc.ir.pprint import format_modules
4242
from mypyc.namegen import exported_name
@@ -123,19 +123,19 @@ class ModDesc(NamedTuple):
123123
from distutils import ccompiler, sysconfig
124124

125125
EXTRA_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

141141
def 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]

mypyc/lib-rt/setup.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
X86_64 = platform.machine() in ("x86_64", "AMD64", "amd64")
3030

3131
EXTRA_FLAGS_PER_COMPILER_TYPE_PER_PATH_COMPONENT = {
32-
"unix": {
33-
"base64/arch/ssse3": "-mssse3",
34-
"base64/arch/sse41": "-msse4.1",
35-
"base64/arch/sse42": "-msse4.2",
36-
"base64/arch/avx2": "-mavx2",
37-
"base64/arch/avx": "-mavx",
38-
},
39-
"msvc": {
40-
"base64/arch/sse42": "/arch:SSE4.2",
41-
"base64/arch/avx2": "/arch:AVX2",
42-
"base64/arch/avx": "/arch:AVX",
43-
}
44-
}
32+
"unix": {
33+
"base64/arch/ssse3": "-mssse3",
34+
"base64/arch/sse41": "-msse4.1",
35+
"base64/arch/sse42": "-msse4.2",
36+
"base64/arch/avx2": "-mavx2",
37+
"base64/arch/avx": "-mavx",
38+
},
39+
"msvc": {
40+
"base64/arch/sse42": "/arch:SSE4.2",
41+
"base64/arch/avx2": "/arch:AVX2",
42+
"base64/arch/avx": "/arch:AVX",
43+
},
44+
}
4545

4646

4747
def spawn(self: ccompiler.CCompiler, cmd: Iterable[str], **kwargs: Any) -> None:
@@ -58,7 +58,7 @@ def spawn(self: ccompiler.CCompiler, cmd: Iterable[str], **kwargs: Any) -> None:
5858

5959
for path in extra_options.keys():
6060
if path in str(argument):
61-
if compiler_type == 'bcpp':
61+
if compiler_type == "bcpp":
6262
# Borland accepts a source file name at the end,
6363
# insert the options before it
6464
new_cmd[-1:-1] = extra_options[path]

0 commit comments

Comments
 (0)