Commits

Thomas Nagy  committed 64f46a8

docs

  • Participants
  • Parent commits f0dbccf

Comments (0)

Files changed (1)

File demos/pch/wscript

 from waflib.Task import Task
 from waflib.Tools import c_preproc
 
-#@feature('cxx') <- python >= 2.4
-#@after('apply_link')
+@feature('cxx')
+@after('apply_link')
 def process_pch(self):
 	if getattr(self, 'pch', ''):
 		nodes = self.to_nodes(self.pch)
 		for x in nodes:
 			self.create_task('gchx', x, x.change_ext('.h.gch'))
-feature('cxx')(process_pch)
-after('apply_link')(process_pch)
 
 class gchx(Task):
 	run_str = '${CXX} ${CXXFLAGS} ${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${CXX_SRC_F}${SRC} ${CXX_TGT_F}${TGT}'