about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2018-08-14 21:08:42 -0700
committerJosh Stone <jistone@redhat.com>2018-09-04 11:28:00 -0700
commite9dce132b24adc1c684b1045f35d5114ee731b06 (patch)
tree57aca61b8cafed030b5246e98d719c45e42af369 /src/rustllvm/RustWrapper.cpp
parentb4ec8d46eeadc76760352be94d6fddc4f7936c50 (diff)
downloadrust-e9dce132b24adc1c684b1045f35d5114ee731b06.tar.gz
rust-e9dce132b24adc1c684b1045f35d5114ee731b06.zip
std: Use target_pointer_width for BACKTRACE_ELF_SIZE
The former code used `target.contains("64")` to detect Elf64 targets,
but this is inaccurate in a few cases:

- `s390x-unknown-linux-gnu` is 64-bit
- `sparcv9-sun-solaris` is 64-bit
- `x86_64-unknown-linux-gnux32` is 32-bit

Instead the `std` build script can use `CARGO_CFG_TARGET_POINTER_WIDTH`
to reliably detect 64-bit targets for libbacktrace.

Also update to backtrace-sys 0.1.24 for alexcrichton/backtrace-rs#122.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions