[llvm-commits] [zorg] r151067 - /zorg/trunk/lnt/lnt/tests/compile.py

Daniel Dunbar daniel at zuster.org
Tue Feb 21 09:39:33 PST 2012


Author: ddunbar
Date: Tue Feb 21 11:39:33 2012
New Revision: 151067

URL: http://llvm.org/viewvc/llvm-project?rev=151067&view=rev
Log:
[lnt] lnt.tests.compile: Set LDPLUSPLUS when invoking xcodebuild, to ensure we
use a valid compiler driver when we try to link.

Modified:
    zorg/trunk/lnt/lnt/tests/compile.py

Modified: zorg/trunk/lnt/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/compile.py?rev=151067&r1=151066&r2=151067&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/compile.py (original)
+++ zorg/trunk/lnt/lnt/tests/compile.py Tue Feb 21 11:39:33 2012
@@ -327,6 +327,11 @@
         cmd.append('CC=%s' % (opts.cc,))
         cmd.append('CPLUSPLUS=%s' % (opts.cxx,))
 
+        # We need to force this variable here because Xcode has some completely
+        # broken logic for deriving this variable from the compiler
+        # name. <rdar://problem/7989147>
+        cmd.append('LDPLUSPLUS=%s' % (opts.cxx,))
+
         # Add additional arguments to force the build scenario we want.
         cmd.extend(('-jobs', str(num_jobs)))
     else:





More information about the llvm-commits mailing list