2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Fix: cache file loading and saving must use native paths

Fixes caching at least on Windows platform


[SVN r84402]
This commit is contained in:
Jürgen Hunold
2013-05-21 12:23:20 +00:00
parent 9203b0f183
commit b433dacebd

View File

@@ -23,7 +23,8 @@ rule save ( )
{
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 @@ rule load ( cache-file )
{
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) ;