We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5efeedf + 8af0dba commit 2e126b1Copy full SHA for 2e126b1
backtrace-sys/build.rs
@@ -40,7 +40,8 @@ fn main() {
40
build.flag("-fvisibility=hidden");
41
build.file("src/libbacktrace/elf.c");
42
43
- if target.contains("64") {
+ let pointer_width = env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap();
44
+ if pointer_width == "64" {
45
build.define("BACKTRACE_ELF_SIZE", "64");
46
} else {
47
build.define("BACKTRACE_ELF_SIZE", "32");
0 commit comments