Skip to content

Commit

Permalink
Try to fix libiconv linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 28, 2024
1 parent 9077060 commit a0ee6fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ impl Zig {
if target_info.is_macos {
if self.should_add_libcharset(cmd_args, &zig_version) {
new_cmd_args.push("-lcharset".to_string());
// Add the deps directory that contains `.tbd` files to the library search path
let deps_dir = cache_dir().join("deps");
new_cmd_args.push("-L".to_string());
new_cmd_args.push(format!("{}", deps_dir.display()));
}
self.add_macos_specific_args(&mut new_cmd_args, &zig_version)?;
}
Expand Down

0 comments on commit a0ee6fe

Please sign in to comment.