Unbreak windows bots

llvm-svn: 352086
This commit is contained in:
Adrian Prantl 2019-01-24 19:16:45 +00:00
parent 66b62979b7
commit 03f9e25bb0

View File

@ -1311,8 +1311,8 @@ class Base(unittest2.TestCase):
def getDwarfVersion(self):
""" Returns the dwarf version generated by clang or 'unknown'. """
if 'clang' not in self.getCompiler():
return 'unknown'
if 'clang' in self.getCompiler():
try:
driver_output = check_output(
[self.getCompiler()] + '-g -c -x c - -o - -###'.split(),
stderr=STDOUT)
@ -1320,6 +1320,7 @@ class Base(unittest2.TestCase):
m = re.search('dwarf-version=([0-9])', line)
if m:
return m.group(1)
except: pass
return 'unknown'
def platformIsDarwin(self):