sbsv2/raptor/python/raptor.py
branchfix
changeset 541 33be37141e47
parent 537 164e587fef9f
child 553 7d4971eaf863
equal deleted inserted replaced
527:9e83d2225bfb 541:33be37141e47
   336 			cli_options += " -k"
   336 			cli_options += " -k"
   337 
   337 
   338 		if build.quiet == True:
   338 		if build.quiet == True:
   339 			cli_options += " -q"
   339 			cli_options += " -q"
   340 
   340 
   341 		if build.timing == True:
       
   342 			cli_options += " --timing"
       
   343 
       
   344 		if build.noDependInclude == True:
   341 		if build.noDependInclude == True:
   345 			cli_options += " --no-depend-include"
   342 			cli_options += " --no-depend-include"
   346 
   343 
   347 		if build.noDependGenerate == True:
   344 		if build.noDependGenerate == True:
   348 			cli_options += " --no-depend-generate"
   345 			cli_options += " --no-depend-generate"
   532 		self.mission = Raptor.M_BUILD
   529 		self.mission = Raptor.M_BUILD
   533 
   530 
   534 		# what platform and filesystem are we running on?
   531 		# what platform and filesystem are we running on?
   535 		self.filesystem = raptor_utilities.getOSFileSystem()
   532 		self.filesystem = raptor_utilities.getOSFileSystem()
   536 
   533 
   537 		self.timing = False
   534 		self.timing = True # Needed by filters such as copy_file to monitor progress
   538 		self.toolset = None
   535 		self.toolset = None
   539 
   536 
   540 		self.starttime = time.time()
   537 		self.starttime = time.time()
   541 		self.timestring = time.strftime("%Y-%m-%d-%H-%M-%S")
   538 		self.timestring = time.strftime("%Y-%m-%d-%H-%M-%S")
   542 
   539 
   694 			return False
   691 			return False
   695 
   692 
   696 		return True
   693 		return True
   697 
   694 
   698 	def SetTiming(self, TrueOrFalse):
   695 	def SetTiming(self, TrueOrFalse):
   699 		self.timing = TrueOrFalse
   696 		self.Info("--timing switch no longer has any effect - build timing is now permanently on")
   700 		return True
   697 		return True
   701 
   698 
   702 	def SetParallelParsing(self, type):
   699 	def SetParallelParsing(self, type):
   703 		type = type.lower()
   700 		type = type.lower()
   704 		if type == "on":
   701 		if type == "on":
   827 
   824 
   828 			if is_clean:
   825 			if is_clean:
   829 				self.filterList += ",filterclean"
   826 				self.filterList += ",filterclean"
   830 				if is_suspicious_clean:
   827 				if is_suspicious_clean:
   831 					self.Warn('CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable.')
   828 					self.Warn('CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable.')
       
   829 			else:
       
   830 				""" Copyfile implements the <copy> tag which is primarily useful with cluster builds.
       
   831 				    It allows file copying to occur on the primary build host rather than on the cluster.
       
   832 				    This is more efficient.
       
   833 				"""
       
   834 				self.filterList += ",filtercopyfile"
   832 
   835 
   833 		if not more_to_do:
   836 		if not more_to_do:
   834 			self.skipAll = True		# nothing else to do
   837 			self.skipAll = True		# nothing else to do
   835 
   838 
   836 	def ProcessConfig(self):
   839 	def ProcessConfig(self):