-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
193 fix macos installation from crates (#194)
* remove build instructions from cargo toml * added mac specific linker args to build.rs * bump version
- Loading branch information
1 parent
6ea93f1
commit 2528bf0
Showing
2 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use std::env; | ||
|
||
fn main() { | ||
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); | ||
if target_os == "macos" { | ||
println!("cargo:rustc-link-arg=-undefined"); | ||
println!("cargo:rustc-link-arg=dynamic_lookup"); | ||
} | ||
} |