Commit 87a08f9
committed
[clang][DependencyFile] Use atomic write for dependency file (swiftlang#10902)
Previously when switch to output backend, dependency file was relying
on non-atomic write + discard to remove the out of date dependency file
when there are missing headers. The reliance on non-atomic write can
cause race conditions that build system is trying to read the file while the
file is being updated by a different compiler instance.
rdar://1541285781 parent b79c639 commit 87a08f9
1 file changed
+7
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
396 | 393 | | |
397 | 394 | | |
398 | 395 | | |
399 | 396 | | |
400 | 397 | | |
401 | 398 | | |
402 | 399 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 400 | | |
409 | 401 | | |
410 | 402 | | |
| |||
0 commit comments