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 16780ab commit 63af797Copy full SHA for 63af797
backtrace-sys/Cargo.toml
@@ -16,3 +16,4 @@ libc = "0.2"
16
17
[build-dependencies]
18
cc = "1.0"
19
+pkg-config = "0.3"
backtrace-sys/build.rs
@@ -1,3 +1,4 @@
1
+extern crate pkg_config;
2
extern crate cc;
3
4
use std::env;
@@ -48,6 +49,12 @@ fn main() {
48
49
}
50
51
52
+ if let Ok(unwind) = pkg_config::Config::new().probe("libunwind") {
53
+ for path in unwind.include_paths {
54
+ build.include(path);
55
+ }
56
57
+
58
File::create(out_dir.join("backtrace-supported.h")).unwrap();
59
build.define("BACKTRACE_SUPPORTED", "1");
60
build.define("BACKTRACE_USES_MALLOC", "1");
0 commit comments