mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* Tweak compile args for OSX
This commit is contained in:
parent
b4edd1d907
commit
aa475673ee
8
setup.py
8
setup.py
|
@ -117,12 +117,10 @@ def run_setup(exts):
|
||||||
def main(modules, is_pypy):
|
def main(modules, is_pypy):
|
||||||
language = "cpp"
|
language = "cpp"
|
||||||
includes = ['.', path.join(sys.prefix, 'include')]
|
includes = ['.', path.join(sys.prefix, 'include')]
|
||||||
compile_args = ['-O3']
|
compile_args = ['-O3', '-stdlib=libc++']
|
||||||
link_args = []
|
link_args = ['-lc++']
|
||||||
if sys.prefix == 'darwin':
|
if sys.prefix == 'darwin':
|
||||||
compile_args.extend(['-std=c++11', '-stdlib=libc++',
|
compile_args.append(['-mmacosx-version-min=10.8'])
|
||||||
'-mmacosx-version-min=10.8'])
|
|
||||||
link_args.append('-lc++')
|
|
||||||
if use_cython:
|
if use_cython:
|
||||||
exts = cython_exts(modules, language, includes, compile_args, link_args)
|
exts = cython_exts(modules, language, includes, compile_args, link_args)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user