Skip to content

Commit 79d1a8d

Browse files
authored
fix c compiler setup (#562)
1 parent 8b53fc1 commit 79d1a8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from setuptools.errors import CCompilerError, ExecError, PlatformError
99
from distutils import ccompiler
1010
from distutils.command.clean import clean
11+
from distutils.sysconfig import customize_compiler
1112

1213
# determine CPU support for SSE2 and AVX2
1314
cpu_info = cpuinfo.get_cpu_info()
@@ -325,6 +326,7 @@ def run(self):
325326
if cpuinfo.platform.machine() == 'x86_64':
326327
S_files = glob('c-blosc/internal-complibs/zstd*/decompress/*amd64.S')
327328
compiler = ccompiler.new_compiler()
329+
customize_compiler(compiler)
328330
compiler.src_extensions.append('.S')
329331
compiler.compile(S_files)
330332

0 commit comments

Comments
 (0)