[LNT] r268118 - When building the cPerf extension on OSX, use the right compiler

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 14:49:43 PDT 2016


Author: cmatthews
Date: Fri Apr 29 16:49:42 2016
New Revision: 268118

URL: http://llvm.org/viewvc/llvm-project?rev=268118&view=rev
Log:
When building the cPerf extension on OSX, use the right compiler

Modified:
    lnt/trunk/setup.py

Modified: lnt/trunk/setup.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/setup.py?rev=268118&r1=268117&r2=268118&view=diff
==============================================================================
--- lnt/trunk/setup.py (original)
+++ lnt/trunk/setup.py Fri Apr 29 16:49:42 2016
@@ -1,8 +1,14 @@
 import lnt
 import os
-
+from sys import platform as _platform
 from setuptools import setup, find_packages, Extension
 
+
+if _platform == "darwin":
+    os.environ["CC"] = "xcrun clang"
+    os.environ["CXX"] = "xcrun clang"
+
+
 # setuptools expects to be invoked from within the directory of setup.py, but it
 # is nice to allow:
 #   python path/to/setup.py install




More information about the llvm-commits mailing list