[zorg] r260268 - Check for host-compiler and in workspace. If found, use it for stage2 compile

Marc Schifer via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 11:57:35 PST 2016


Author: mschifer
Date: Tue Feb  9 13:57:35 2016
New Revision: 260268

URL: http://llvm.org/viewvc/llvm-project?rev=260268&view=rev
Log:
Check for host-compiler and in workspace. If found, use it for stage2 compile

Modified:
    zorg/trunk/zorg/jenkins/build.py

Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=260268&r1=260267&r2=260268&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Tue Feb  9 13:57:35 2016
@@ -285,6 +285,10 @@ def clang_builder(target):
             '-DLIBCXX_INSTALL_LIBRARY=Off',
             ]
 
+            if conf.CC():
+                cmake_command.extend(['-DCMAKE_C_COMPILER=' + conf.CC(),
+                          '-DCMAKE_CXX_COMPILER=' + conf.CC() + "++"])
+
             lit_flags = ['--xunit-xml-output=testresults.xunit.xml', '-v']
             if conf.max_parallel_tests:
                 lit_flags += ['-j', conf.max_parallel_tests]




More information about the llvm-commits mailing list