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

Daniel Dunbar daniel at zuster.org
Sun Apr 18 20:59:52 PDT 2010


Author: ddunbar
Date: Sun Apr 18 22:59:52 2010
New Revision: 101761

URL: http://llvm.org/viewvc/llvm-project?rev=101761&view=rev
Log:
LNT/nt: Require -cxx_reference be available, it is sometimes used to link things even with --disable-cxx.

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=101761&r1=101760&r2=101761&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Sun Apr 18 22:59:52 2010
@@ -48,11 +48,10 @@
         }
 
     # Set test selection variables.
+    make_variables['TARGET_CXX'] = opts.cxx_reference
     if opts.test_cxx:
-        make_variables['TARGET_CXX'] = opts.cxx_reference
         make_variables['TARGET_LLVMGXX'] = opts.cxx_under_test
     else:
-        make_variables['TARGET_CXX'] = 'false'
         make_variables['TARGET_LLVMGXX'] = 'false'
         make_variables['DISABLE_CXX'] = '1'
     if not opts.test_cbe:
@@ -496,14 +495,14 @@
             opts.cc_reference = which('gcc') or which('cc')
             if opts.cc_reference is None:
                 parser.error('unable to infer --cc-reference (required)')
-        if opts.test_cxx and opts.cxx_reference is None:
+        if opts.cxx_reference is None:
             opts.cxx_reference = which('g++') or which('c++')
             if opts.cxx_reference is None:
                 parser.error('unable to infer --cxx-reference (required)')
 
         if opts.cc_under_test is None:
             parser.error('--cc is required')
-        if opts.cxx_under_test is None:
+        if opts.test_cxx and opts.cxx_under_test is None:
             parser.error('--cxx is required')
 
         if opts.llvm_src_root is None:





More information about the llvm-commits mailing list