* 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:
Matthew Honnibal 2015-02-18 06:03:45 -05:00
parent aa475673ee
commit 59b46e4c2f

View File

@ -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: