@@ -198,12 +198,12 @@ def checkCompilers(self, cc, cxx):
198
198
if not ccOk :
199
199
print ('The C compiler {0} was not found or not executable.\n Better not try using wllvm!\n ' .format (cc ))
200
200
else :
201
- print ('The C compiler {0} is:\n \n {1}\n ' .format (cc , extractLine (ccVersion , 0 )))
201
+ print ('The C compiler {0} is:\n \n \t {1}\n ' .format (cc , extractLine (ccVersion , 0 )))
202
202
203
203
if not cxxOk :
204
204
print ('The CXX compiler {0} was not found or not executable.\n Better not try using wllvm++!\n ' .format (cxx ))
205
205
else :
206
- print ('The C++ compiler {0} is:\n \n {1}\n ' .format (cxx , extractLine (cxxVersion , 0 )))
206
+ print ('The C++ compiler {0} is:\n \n \t {1}\n ' .format (cxx , extractLine (cxxVersion , 0 )))
207
207
208
208
if not ccOk or not cxxOk :
209
209
print (explain_LLVM_COMPILER_PATH )
@@ -257,13 +257,13 @@ def checkAuxiliaries(self):
257
257
print ('The bitcode linker {0} was not found or not executable.\n Better not try using extract-bc!\n ' .format (link ))
258
258
print (explain_LLVM_LINK_NAME )
259
259
else :
260
- print ('The bitcode linker {0} is:\n \n {1}\n ' .format (link , extractLine (linkVersion , 1 )))
260
+ print ('The bitcode linker {0} is:\n \n \t {1}\n ' .format (link , extractLine (linkVersion , 1 )))
261
261
262
262
if not arOk :
263
263
print ('The bitcode archiver {0} was not found or not executable.\n Better not try using extract-bc!\n ' .format (ar ))
264
264
print (explain_LLVM_AR_NAME )
265
265
else :
266
- print ('The bitcode archiver {0} is:\n \n {1}\n ' .format (ar , extractLine (arVersion , 1 )))
266
+ print ('The bitcode archiver {0} is:\n \n \t {1}\n ' .format (ar , extractLine (arVersion , 1 )))
267
267
268
268
269
269
def checkStore (self ):
@@ -282,6 +282,5 @@ def extractLine(version, n):
282
282
if not version :
283
283
return version
284
284
lines = version .split ('\n ' )
285
- if n < len (lines ):
286
- return lines [n ]
287
- return lines [- 1 ]
285
+ line = lines [n ] if n < len (lines ) else lines [- 1 ]
286
+ return line .strip () if line else line
0 commit comments