-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: Windows
Description
I read that: https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/amp/
The author suggests to ensure that the binary is flushed to disk after linkage.
We could use File::sync_all
which eventually calls FlushFileBuffers
here:
rust/src/librustc_trans/back/link.rs
Line 822 in 322d7f7
fn exec_linker(sess: &Session, cmd: &mut Command, tmpdir: &Path) |
nabijaczleweli
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: Windows