]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/build/config-cache.jam
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / src / build / config-cache.jam
index ff69ff6f69551007091553c0e9440e265d5547a9..4afba419f308721505f23168b55adbcdc305c288 100644 (file)
@@ -42,6 +42,8 @@ rule save ( )
         ALWAYS $(target) ;
         config-cache.write $(target) ;
         UPDATE_NOW $(target) : [ modules.peek configure : .log-fd ] : ignore-minus-n ;
+        import common ;
+        common.Clean clean-all : $(target) ;
     }
 }
 
@@ -67,6 +69,9 @@ rule load ( cache-file )
     cache-file = [ path.native $(cache-file) ] ;
     if [ path.exists $(cache-file) ] && ! ( --reconfigure in [ modules.peek : ARGV ] )
     {
+        FILE_CONTENTS on <old-cache-file>$(cache-file) = "" ;
+        config-cache.write <old-cache-file>$(cache-file) ;
+        UPDATE_NOW <old-cache-file>$(cache-file) : [ modules.peek configure : .log-fd ] ;
         include <old-cache-file>$(cache-file) ;
     }
     .cache-file = $(cache-file) ;