Skip to content

Commit

Permalink
Pass -headerpad_max_install_names on macOS
Browse files Browse the repository at this point in the history
This should hopefully make install_name_tool work
  • Loading branch information
valadaptive committed Sep 19, 2024
1 parent 6206daa commit 499f964
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/gui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ fn main() {
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
embed_resource::compile("icon.rc", embed_resource::NONE);
}

if env::var("CARGO_CFG_TARGET_OS").is_ok_and(|os| os == "macos") {
println!("cargo:rustc-link-arg=-headerpad_max_install_names");
}
}

0 comments on commit 499f964

Please sign in to comment.