cpython icon indicating copy to clipboard operation
cpython copied to clipboard

GH-118943: Fix a race condition when generating `jit_stencils.h`

Open brandtbucher opened this issue 9 months ago • 0 comments

Write to a temporary file first, then rename it to the intended jit_stencils.h file. This keeps other build steps from assuming that the file has been successfully generated when it's still in the process of being written.

CC: @savannahostrowski

  • Issue: gh-118943

brandtbucher avatar May 11 '24 22:05 brandtbucher