@@ -103,7 +103,7 @@ fn get_linux_lib_paths() -> Vec<String> {
103
103
// fn get_libgcc_path() -> Result<String, String> {
104
104
// let base_path = "/usr/lib/gcc/x86_64-linux-gnu";
105
105
// let entries = std::fs::read_dir(base_path).map_err(|e| format!("Failed to read directory {}: {}", base_path, e))?;
106
-
106
+
107
107
// for entry in entries {
108
108
// let entry = entry.map_err(|e| format!("Failed to read directory entry: {}", e))?;
109
109
// if entry.path().is_dir() {
@@ -115,7 +115,6 @@ fn get_linux_lib_paths() -> Vec<String> {
115
115
// Err("No valid gcc version directory found".to_string())
116
116
// }
117
117
118
-
119
118
impl Linker for LdLinker {
120
119
fn add_object ( & mut self , path : & Path ) -> Result < ( ) , LinkerError > {
121
120
let path_str = path
@@ -347,11 +346,11 @@ impl Linker for MsvcLinker {
347
346
self . push_args ( "ntdll.lib" ) ;
348
347
self . push_args ( "psapi.lib" ) ;
349
348
self . push_args ( "PowrProf.lib" ) ;
350
- self . push_args ( "user32.lib" ) ; // Add user32.lib
349
+ self . push_args ( "user32.lib" ) ; // Add user32.lib
351
350
self . push_args ( "dbghelp.lib" ) ; // Add dbghelp.lib
352
- self . push_args ( "ole32.lib" ) ; // Add ole32.lib
351
+ self . push_args ( "ole32.lib" ) ; // Add ole32.lib
353
352
self . push_args ( "shell32.lib" ) ; // Add shell32.lib
354
- self . push_args ( "iphlpapi.lib" ) ; // Add iphlpapi.lib
353
+ self . push_args ( "iphlpapi.lib" ) ; // Add iphlpapi.lib
355
354
356
355
self . args . insert ( 0 , "lld-link" . to_owned ( ) ) ;
357
356
lld_rs:: link ( lld_rs:: LldFlavor :: Coff , & self . args )
0 commit comments