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) ;