Revert "compiler: Write .o files atomically. See #14533"
authorBen Gamari <ben@smart-cactus.org>
Sun, 3 Mar 2019 05:16:08 +0000 (00:16 -0500)
committerBen Gamari <ben@well-typed.com>
Mon, 4 Mar 2019 15:18:41 +0000 (10:18 -0500)
This reverts commit 0e2d300a59b1b5c167d2e7d99a448c8663ba6d7d.

compiler/main/DriverPipeline.hs

index 3f59ed3..5fe2362 100644 (file)
@@ -1375,12 +1375,7 @@ runPhase (RealPhase (As with_cpp)) input_fn dflags
                           ])
 
         liftIO $ debugTraceMsg dflags 4 (text "Running the assembler")
-
-        -- Atomic write by writing to temp file and then renaming
-        let temp_output_fn = output_fn <.> "tmp"
-        runAssembler input_fn temp_output_fn
-        liftIO $ renameFile temp_output_fn output_fn
-
+        runAssembler input_fn output_fn
         return (RealPhase next_phase, output_fn)