Files
swift-mirror/lib/FrontendTool/ReferenceDependencies.cpp
Owen Voorhees a676ab6d4c [Frontend]: Write out .swiftdeps files atomically
Modify ReferenceDependenciesEmitter::emit to write to a temporary file and then atomically rename it in place using the atomicallyWritingToFile helper function.
This resolves SR-8707, where .swiftdeps files could be truncated if the compiler job was killed in the middle of a write.
2018-10-05 19:13:40 -07:00

21 KiB