We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0974d6f commit 1a836c2Copy full SHA for 1a836c2
build.rs
@@ -1,3 +1,11 @@
1
+use std::env;
2
+
3
fn main() {
- println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,librbackend.abi3.so")
4
+ let target = env::var("TARGET").unwrap();
5
+ if target.contains("linux") {
6
+ println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,librbackend.abi3.so")
7
+ }
8
+ if target.contains("apple") {
9
+ println!("cargo:rustc-cdylib-link-arg=-Wl,-install_name,librbackend.abi3.so")
10
11
}
0 commit comments