|
|
|
|
@ -737,7 +737,7 @@ void Usages::Clang::write_cache(const boost::filesystem::path &path, const Clang
|
|
|
|
|
stream.close(); |
|
|
|
|
boost::filesystem::rename(tmp_file, full_cache_path, ec); |
|
|
|
|
if(ec) { |
|
|
|
|
boost::filesystem::copy_file(tmp_file, full_cache_path, boost::filesystem::copy_option::overwrite_if_exists); |
|
|
|
|
boost::filesystem::copy_file(tmp_file, full_cache_path, boost::filesystem::copy_options::overwrite_existing); |
|
|
|
|
boost::filesystem::remove(tmp_file, ec); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|