[llvm-commits] [zorg] r108398 - /zorg/trunk/lnt/lnt/tests/nt.py

Daniel Dunbar daniel at zuster.org
Wed Jul 14 20:03:19 PDT 2010


Author: ddunbar
Date: Wed Jul 14 22:03:19 2010
New Revision: 108398

URL: http://llvm.org/viewvc/llvm-project?rev=108398&view=rev
Log:
LNT/nt: Automatically set CC_UNDER_TEST_IS_CLANG in the make variables.

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

Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=108398&r1=108397&r2=108398&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Wed Jul 14 22:03:19 2010
@@ -133,6 +133,10 @@
     cc_info = lnt.testing.util.compilers.get_cc_info(opts.cc_under_test,
                                                      target_flags)
 
+    # Set CC_UNDER_TEST_IS_CLANG when appropriate.
+    if cc_info.get('cc_name') == 'clang':
+        make_variables['CC_UNDER_TEST_IS_CLANG'] = '1'
+
     # Set ARCH appropriately, based on the inferred target.
     #
     # FIXME: We should probably be more strict about this.





More information about the llvm-commits mailing list