[LNT] r268123 - And also use the right c++ library

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 15:16:45 PDT 2016


Author: cmatthews
Date: Fri Apr 29 17:16:44 2016
New Revision: 268123

URL: http://llvm.org/viewvc/llvm-project?rev=268123&view=rev
Log:
And also use the right c++ library

Modified:
    lnt/trunk/setup.py

Modified: lnt/trunk/setup.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/setup.py?rev=268123&r1=268122&r2=268123&view=diff
==============================================================================
--- lnt/trunk/setup.py (original)
+++ lnt/trunk/setup.py Fri Apr 29 17:16:44 2016
@@ -3,11 +3,12 @@ import os
 from sys import platform as _platform
 from setuptools import setup, find_packages, Extension
 
+cflags = []
 
 if _platform == "darwin":
     os.environ["CC"] = "xcrun clang"
     os.environ["CXX"] = "xcrun clang"
-
+    cflags += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
 
 # setuptools expects to be invoked from within the directory of setup.py, but it
 # is nice to allow:
@@ -16,9 +17,9 @@ if _platform == "darwin":
 os.chdir(os.path.dirname(os.path.abspath(__file__)))
 
 cPerf = Extension('lnt.testing.profile.cPerf',
-                  sources = ['lnt/testing/profile/cPerf.cpp'],
-                  extra_compile_args = ['-std=c++11'],
-                  optional = True)
+                  sources=['lnt/testing/profile/cPerf.cpp'],
+                  extra_compile_args=['-std=c++11'] + cflags,
+                  optional=True)
 
 setup(
     name = "LNT",




More information about the llvm-commits mailing list