mirror of https://github.com/explosion/spaCy.git
* Move -lc++ link arg to only be used if darwin is OS. Should actually check whether GCC is compiler
This commit is contained in:
parent
59b46e4c2f
commit
ba1d3ddd7f
3
setup.py
3
setup.py
|
@ -118,9 +118,10 @@ def main(modules, is_pypy):
|
|||
language = "cpp"
|
||||
includes = ['.', path.join(sys.prefix, 'include')]
|
||||
compile_args = ['-O3']
|
||||
link_args = ['-lc++']
|
||||
link_args = []
|
||||
if sys.prefix == 'darwin':
|
||||
compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
|
||||
link_args.append('-lc++')
|
||||
if use_cython:
|
||||
exts = cython_exts(modules, language, includes, compile_args, link_args)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue