mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
21 KiB
21 KiB