| ... | @@ -3389,6 +3389,14 @@ fn buildOutputType( | ... | @@ -3389,6 +3389,14 @@ fn buildOutputType( |
| 3389 | var file_system_inputs: std.ArrayListUnmanaged(u8) = .empty; | 3389 | var file_system_inputs: std.ArrayListUnmanaged(u8) = .empty; |
| 3390 | defer file_system_inputs.deinit(gpa); | 3390 | defer file_system_inputs.deinit(gpa); |
| 3391 | | 3391 | |
| | 3392 | // Deduplicate rpath entries |
| | 3393 | var rpath_dedup = std.StringArrayHashMapUnmanaged(void){}; |
| | 3394 | for (create_module.rpath_list.items) |rpath| { |
| | 3395 | try rpath_dedup.put(arena, rpath, {}); |
| | 3396 | } |
| | 3397 | create_module.rpath_list.clearRetainingCapacity(); |
| | 3398 | try create_module.rpath_list.appendSlice(arena, rpath_dedup.keys()); |
| | 3399 | |
| 3392 | var create_diag: Compilation.CreateDiagnostic = undefined; | 3400 | var create_diag: Compilation.CreateDiagnostic = undefined; |
| 3393 | const comp = Compilation.create(gpa, arena, &create_diag, .{ | 3401 | const comp = Compilation.create(gpa, arena, &create_diag, .{ |
| 3394 | .dirs = dirs, | 3402 | .dirs = dirs, |