From aa475673ee19149cfb488e6cc53c9f90ede584e1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 18 Feb 2015 05:41:11 -0500 Subject: [PATCH] * Tweak compile args for OSX --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 09778bbaf..e40422bad 100644 --- a/setup.py +++ b/setup.py @@ -117,12 +117,10 @@ def run_setup(exts): def main(modules, is_pypy): language = "cpp" includes = ['.', path.join(sys.prefix, 'include')] - compile_args = ['-O3'] - link_args = [] + compile_args = ['-O3', '-stdlib=libc++'] + link_args = ['-lc++'] if sys.prefix == 'darwin': - compile_args.extend(['-std=c++11', '-stdlib=libc++', - '-mmacosx-version-min=10.8']) - link_args.append('-lc++') + compile_args.append(['-mmacosx-version-min=10.8']) if use_cython: exts = cython_exts(modules, language, includes, compile_args, link_args) else: