Skip to content

Commit

Permalink
Fix fuzzing link issue on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasDwyer committed Oct 22, 2023
1 parent 4e833f2 commit bce2b45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
fn main() {
if std::env::var("CARGO_CFG_FUZZING").is_ok() && std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-cdylib-link-arg=-undefined");
println!("cargo:rustc-cdylib-link-arg=dynamic_lookup");
}

#[cfg(feature = "python")]
pyo3_build_config::add_extension_module_link_args();
}

0 comments on commit bce2b45

Please sign in to comment.