mirror of
https://github.com/boostorg/build.git
synced 2026-02-18 14:02:11 +00:00
Merge 84402 from ^/trunk
------------------------------------------------------------------------ r84402 | jhunold | 2013-05-21 14:23:20 +0200 (Di, 21 Mai 2013) | 4 lines Fix: cache file loading and saving must use native paths Fixes caching at least on Windows platform ------------------------------------------------------------------------ [SVN r86519]
This commit is contained in:
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user