]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #49432 - nabijaczleweli:master, r=michaelwoerister
authorkennytm <kennytm@gmail.com>
Thu, 5 Apr 2018 08:51:20 +0000 (16:51 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Apr 2018 08:51:20 +0000 (16:51 +0800)
commit19c69082f5b0e5b44fe660b6bdd73ea8ac60b6b0
tree60c656c9b362e0d82b711507c2c551abf77dfefa
parenta70f84401286b58c5767ada0dfd63729640af0e9
parente1d3c471d75bbc4360eee17178ccb32dce348542
Rollup merge of #49432 - nabijaczleweli:master, r=michaelwoerister

Flush executables to disk after linkage

A problem caused by not doing so in Chrome has been reported [here](https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/amp/).

`File::sync_all()` calls `FlushFileBuffers()` down the line, causing potentially unflushed buffers on high I/O-load systems to flush and preventing nasty non-reproducible bugs.

Closes #48545
src/librustc_trans/back/link.rs