From b433dacebdf5423c62b2cfcb591e52c1ded318c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Tue, 21 May 2013 12:23:20 +0000 Subject: [PATCH] Fix: cache file loading and saving must use native paths Fixes caching at least on Windows platform [SVN r84402] --- src/build/config-cache.jam | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/build/config-cache.jam b/src/build/config-cache.jam index ff05fb6f8..5297dbb84 100644 --- a/src/build/config-cache.jam +++ b/src/build/config-cache.jam @@ -23,7 +23,8 @@ rule save ( ) { if $(.cache-file) { - local target = $(.cache-file) ; + local cache-file-native = [ path.native $(.cache-file) ] ; + local target = $(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 $(cache-file) ;