Index: v2/tools/pch.jam =================================================================== RCS file: /cvsroot/boost/boost/tools/build/v2/tools/pch.jam,v retrieving revision 1.2 diff -u -r1.2 pch.jam --- v2/tools/pch.jam 17 Jun 2006 09:48:21 -0000 1.2 +++ v2/tools/pch.jam 22 Sep 2006 12:46:52 -0000 @@ -50,18 +50,26 @@ rule run ( project name ? : property-set : sources * ) { + local cpp = $(sources[2]) ; + local h = $(sources[1]) ; + if [ $(sources[2]).type ] = PCHEADER + { + cpp = $(sources[1]) ; + h = $(sources[2]) ; + } + local r = [ generator.run $(project) $(name) : [ property-set.create - $(sources[2]) # mypch.cpp + $(cpp) # mypch.cpp [ $(property-set).raw ] ] : $(sources) ] ; return [ property-set.create - $(sources[1]) # mypch.h[pp] + $(h) # mypch.h[pp] $(r[2]) # mypch.pch ] $(r) ; }