Alexander Richardson 14882d6b74
[libc++][lit] Atomically update the persistent cache (#66538)
When running multiple shards in parallel, one shard might write to the
cache while another one is reading this cache. Instead of updating the
file in place, write to a temporary file and swap the cache file using
os.replace(). This is an atomic operation and means shards will either
see the old state or the new one.
2023-09-18 12:08:24 -04:00
..
2023-09-16 19:54:19 +01:00
2023-05-16 14:30:36 -07:00