Update of /cvsroot/boost/boost/tools/build/v2/tools
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9124

Modified Files:
        pch.jam 
Log Message:
Robustify PCH generator.

    * pch.jam (pch-generator.run): Don't insist on specific order
    of source targets.


Index: pch.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/pch.jam,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pch.jam     17 Jun 2006 09:48:21 -0000      1.2
+++ pch.jam     24 Sep 2006 09:38:46 -0000      1.3
@@ -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
-                <pch-source>$(sources[2]) # mypch.cpp
+                <pch-source>$(cpp)      # mypch.cpp
                 [ $(property-set).raw ]
             ] : $(sources)
           ] ;
 
         return
           [ property-set.create
-              <pch-header>$(sources[1]) # mypch.h[pp]
+              <pch-header>$(h)          # mypch.h[pp]
               <pch-file>$(r[2])         # mypch.pch
           ] $(r) ;
     }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to