[LNT] r215049 - Make not finding compiler version a hard error

Chris Matthews cmatthews5 at apple.com
Wed Aug 6 19:19:24 PDT 2014


Author: cmatthews
Date: Wed Aug  6 21:19:24 2014
New Revision: 215049

URL: http://llvm.org/viewvc/llvm-project?rev=215049&view=rev
Log:
Make not finding compiler version a hard error

Modified:
    lnt/trunk/lnt/testing/util/compilers.py

Modified: lnt/trunk/lnt/testing/util/compilers.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/testing/util/compilers.py?rev=215049&r1=215048&r2=215049&view=diff
==============================================================================
--- lnt/trunk/lnt/testing/util/compilers.py (original)
+++ lnt/trunk/lnt/testing/util/compilers.py Wed Aug  6 21:19:24 2014
@@ -5,6 +5,7 @@ import tempfile
 
 from commands import capture
 from commands import error
+from commands import fatal
 from commands import rm_f
 
 def ishexhash(string):
@@ -69,12 +70,12 @@ def get_cc_info(path, cc_flags=[]):
         elif 'cc1' in ln or 'clang-cc' in ln:
             m = re.match(r' "?([^"]*)"?.*"?-E"?.*', ln)
             if not m:
-                error("unable to determine cc1 binary: %r: %r" % (cc, ln))
+                fatal("unable to determine cc1 binary: %r: %r" % (cc, ln))
             cc1_binary, = m.groups()
         elif "-_Amachine" in ln:
             m = re.match(r'([^ ]*) *-.*', ln)
             if not m:
-                error("unable to determine cc1 binary: %r: %r" % (cc, ln))
+                fatal("unable to determine cc1 binary: %r: %r" % (cc, ln))
             cc1_binary, = m.groups()
     if version_ln is None:
         error("unable to find compiler version: %r: %r" % (cc, cc_version))





More information about the llvm-commits mailing list