Ian Johnson d4df65e355 std.Build.Step.Compile: fix race condition in args file creation
Fixes #23993

Previously, if multiple build processes tried to create the same args file, there was a race condition with the use of the non-atomic `writeFile` function which could cause a spawned compiler to read an empty or incomplete args file. This commit avoids the race condition by first writing to a temporary file with a random path and renaming it to the desired path.
2025-08-26 12:02:50 +01:00
..
2024-12-19 17:10:03 -05:00
2025-07-07 22:43:51 -07:00
2025-07-31 22:10:11 -07:00
2025-07-14 00:16:49 -07:00
2025-07-07 22:43:51 -07:00
2025-07-07 22:43:51 -07:00
2025-07-14 00:14:21 -07:00
2025-08-25 04:05:37 -07:00
2024-08-22 08:44:08 +02:00
2025-08-08 12:47:00 -07:00
2025-08-08 17:17:53 -07:00
2025-07-31 22:10:11 -07:00
2024-07-31 16:57:42 -07:00
2025-08-01 14:57:16 -07:00
2025-07-07 22:43:51 -07:00
2024-08-29 23:43:52 +01:00
2025-08-25 16:15:17 +02:00
2025-07-22 09:41:44 -07:00
2025-08-26 07:50:06 +02:00
2025-08-15 10:44:35 -07:00
2025-08-07 10:04:52 -07:00
2025-07-16 10:27:39 -07:00
2025-08-15 10:44:35 -07:00