1. binet
  2. waf

Commits

Thomas Nagy  committed 03f7efb

filtered_object -> accept_node_to_link (still bloatware but better name)

  • Participants
  • Parent commits 1c281ce
  • Branches default

Comments (0)

Files changed (1)

File waflib/Tools/ccroot.py

View file
  • Ignore whitespace
 				if not self.env['STLIB_' + k] and not k in self.uselib:
 					self.uselib.append(k)
 
-def filtered_object(self, node):
+@taskgen_method
+def accept_node_to_link(self, node):
 	"""
-	Determines which objects are not to be used by the link task.
-
+	PRIVATE INTERNAL USE ONLY
 	"""
-	return self.env.DEST_BINFMT == 'pe' and x.name.endswith('.pdb')
+	return not x.name.endswith('.pdb')
 
 @taskgen_method
 def add_objects_from_tgen(self, tg):
 
 	Some objects are filtered: for instance, .pdb files are added
 	to the compiled tasks but not to the link tasks (to avoid errors)
+	PRIVATE INTERNAL USE ONLY
 	"""
-	# Not public yet, wait for waf 1.6.12 at least
 	try:
 		link_task = self.link_task
 	except AttributeError:
 	else:
 		for tsk in getattr(tg, 'compiled_tasks', []):
 			for x in tsk.outputs:
-				if not filtered_object(self, x):
+				if self.accept_node_to_link(x):
 					link_task.inputs.append(x)
 
 @taskgen_method