Commits

Anonymous committed 32612c2

newer gcc versions want a .h.gch

  • Participants
  • Parent commits 47e7065

Comments (0)

Files changed (1)

demos/pch/wscript

 	if getattr(self, 'pch', ''):
 		nodes = self.to_nodes(self.pch)
 		for x in nodes:
-			self.create_task('gchx', x, x.change_ext('.gch'))
+			self.create_task('gchx', x, x.change_ext('.h.gch'))
 feature('cxx')(process_pch)
 after('apply_link')(process_pch)
 
 	scan    = c_preproc.scan
 	ext_out = ['.h']
 	color   = 'BLUE'
+from waflib.Task import update_outputs
+update_outputs(gchx)
 
 #################################################
 # example below