Commit e6ce1743 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Ben Gamari

Revert "compiler: Write .o files atomically. See #14533"

This reverts commit 0e2d300a.
parent e7080bef
Pipeline #3099 passed with stages
in 321 minutes and 58 seconds
......@@ -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)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment