mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
22 lines
956 B
Diff
22 lines
956 B
Diff
diff --git a/util/process_wrapper/main.rs b/util/process_wrapper/main.rs
|
|
index 3139b45a8..b440bc78e 100644
|
|
--- a/util/process_wrapper/main.rs
|
|
+++ b/util/process_wrapper/main.rs
|
|
@@ -210,9 +210,13 @@ fn consolidate_dependency_search_paths(
|
|
}
|
|
|
|
let file_name = entry.file_name();
|
|
- let file_name_lower = file_name
|
|
- .to_string_lossy()
|
|
- .to_ascii_lowercase();
|
|
+ let file_name_lower = file_name.to_string_lossy().to_ascii_lowercase();
|
|
+ if file_name_lower.contains(".tmp") || file_name_lower.ends_with(".rcgu.o") {
|
|
+ // MSVC link actions can leave transient `*.exe.tmp*` and
|
|
+ // per-codegen-unit `*.rcgu.o` outputs next to the final binary.
|
|
+ // Those are not stable linker search-path inputs.
|
|
+ continue;
|
|
+ }
|
|
if !seen.insert(file_name_lower) {
|
|
continue;
|
|
}
|