Fix the wrong removal of first linker arg in Windows. Linker argument file no longer include first program name argument. Small refactor of handling of linker response file. (#5010)

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
qouteallandEvan Almloff authored and GitHub committed 2025-12-15 10:14:22 -06:00
1 parent 5929c09cec
commit da72b63b6f
3 files changed
+28 -12

No files matched your search

+2 -1
View File
@@ -26,7 +26,8 @@ pub fn is_wrapping_rustc() -> bool {
pub struct RustcArgs {
pub args: Vec<String>,
pub envs: Vec<(String, String)>,
pub link_args: Vec<String>, // I don't believe this is used anymore
/// it doesn't include first program name argument
pub link_args: Vec<String>,
}
/// Check if the arguments indicate a linking step, including those in command files.