Mentions légales du service

Skip to content
Snippets Groups Projects
Commit dbecefbf authored by hhakim's avatar hhakim
Browse files

Use clang to build the pyfaust wrapper on Linux instead of gcc.

Cf. issue #215.
parent e2b02c6e
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,12 @@ if(version == ''):
# (not for packaging with a proper version)
# it avoids error PEP440
from sys import platform
if platform == "linux": # or platform == "darwin": # no need to specify we use clang on MacOS X because it's the default compiler
# compile with clang on Linux and MacOS X
from distutils import sysconfig
sysconfig.get_config_vars()['CC'] = 'clang'
PyFaust = Extension('_FaustCorePy',
sources = @PY_EXT_SOURCES@,
......@@ -28,7 +34,6 @@ PyFaust = Extension('_FaustCorePy',
extra_objects = @PYTHON_EXT_EXTRA_OBJECTS@
)
setup(
name = 'pyfaust@PYFAUST_PKG_SUFFIX@',
version = version, # cf. header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment