Pretty print the run options for dumpSessionInfo(self) client.

llvm-svn: 138466
This commit is contained in:
Johnny Chen 2011-08-24 19:48:51 +00:00
parent ba3b99ef1c
commit b7bdd1001e
1 changed files with 6 additions and 4 deletions

View File

@ -777,11 +777,13 @@ class Base(unittest2.TestCase):
self.dumpSessionInfo().""" self.dumpSessionInfo()."""
arch = self.getArchitecture() arch = self.getArchitecture()
comp = self.getCompiler() comp = self.getCompiler()
if not arch and not comp: if arch:
return "" option_str = "-A " + arch
else: else:
return "%s %s" % ("-A "+arch if arch else "", option_str = ""
"-C "+comp if comp else "") if comp:
option_str += "-C " + comp
return option_str
# ================================================== # ==================================================
# Build methods supported through a plugin interface # Build methods supported through a plugin interface