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()."""
arch = self.getArchitecture()
comp = self.getCompiler()
if not arch and not comp:
return ""
if arch:
option_str = "-A " + arch
else:
return "%s %s" % ("-A "+arch if arch else "",
"-C "+comp if comp else "")
option_str = ""
if comp:
option_str += "-C " + comp
return option_str
# ==================================================
# Build methods supported through a plugin interface