mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
* Move libc++ argument back under check for darwin. This assumes that extensions on OSX will be built with clang, but OSX GCC builds are also possible. Need to detect compiler and disable this flag
This commit is contained in:
parent
aa475673ee
commit
59b46e4c2f
4
setup.py
4
setup.py
|
@ -117,10 +117,10 @@ def run_setup(exts):
|
|||
def main(modules, is_pypy):
|
||||
language = "cpp"
|
||||
includes = ['.', path.join(sys.prefix, 'include')]
|
||||
compile_args = ['-O3', '-stdlib=libc++']
|
||||
compile_args = ['-O3']
|
||||
link_args = ['-lc++']
|
||||
if sys.prefix == 'darwin':
|
||||
compile_args.append(['-mmacosx-version-min=10.8'])
|
||||
compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
|
||||
if use_cython:
|
||||
exts = cython_exts(modules, language, includes, compile_args, link_args)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user