We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d755c0 commit b102477Copy full SHA for b102477
build.rs
@@ -7,6 +7,9 @@ fn main() {
7
#[cfg(windows)]
8
cfg.cxxflag("/DWIN32");
9
10
+ #[cfg(target_os="macos")]
11
+ cfg.define("BUILD_UNIVERSAL", "OFF");
12
+
13
let dst = cfg.build();
14
println!("cargo:rustc-link-search=native={}/lib", dst.display());
15
@@ -18,4 +21,7 @@ fn main() {
18
21
19
22
#[cfg(target_os="linux")]
20
23
println!("cargo:rustc-link-lib=stdc++");
24
25
26
+ println!("cargo:rustc-link-lib=c++");
27
}
lib.rs
@@ -3,3 +3,7 @@
3
non_snake_case)]
4
5
include!("bindings.rs");
6
+#[cfg(target_os="macos")]
+#[link(name = "Foundation", kind = "framework")]
+extern { }
0 commit comments