Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84402 - trunk/tools/build/v2/build
From: jhunold_at_[hidden]
Date: 2013-05-21 08:23:21


Author: jhunold
Date: 2013-05-21 08:23:20 EDT (Tue, 21 May 2013)
New Revision: 84402
URL: http://svn.boost.org/trac/boost/changeset/84402

Log:
Fix: cache file loading and saving must use native paths

Fixes caching at least on Windows platform

Text files modified:
   trunk/tools/build/v2/build/config-cache.jam | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/build/config-cache.jam
==============================================================================
--- trunk/tools/build/v2/build/config-cache.jam (original)
+++ trunk/tools/build/v2/build/config-cache.jam 2013-05-21 08:23:20 EDT (Tue, 21 May 2013)
@@ -23,7 +23,8 @@
 {
     if $(.cache-file)
     {
- local target = <new-cache-file>$(.cache-file) ;
+ local cache-file-native = [ path.native $(.cache-file) ] ;
+ local target = <new-cache-file>$(cache-file-native) ;
         local contents = "# Automatically generated by Boost.Build.\n# Do not edit.\n\nmodule config-cache {\n" ;
         for local var in $(.all-vars)
         {
@@ -54,7 +55,7 @@
     {
         errors.error duplicate load of cache file ;
     }
- cache-file = $(cache-file) ;
+ cache-file = [ path.native $(cache-file) ] ;
     if [ path.exists $(cache-file) ] && ! ( --reconfigure in [ modules.peek : ARGV ] )
     {
         include <old-cache-file>$(cache-file) ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk