forked from OSchip/llvm-project
				
			Pretty print the run options for dumpSessionInfo(self) client.
llvm-svn: 138466
This commit is contained in:
		
							parent
							
								
									ba3b99ef1c
								
							
						
					
					
						commit
						b7bdd1001e
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue