mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
9814e83094
libunwind fix and cleanup
Fix:
1. "system-llvm-libunwind" now only skip build-script for linux target
2. workaround from https://github.com/rust-lang/rust/pull/65972 is not needed, upstream fix it in 68c50708d1
( LLVM 11 )
3. remove code for MSCV and Apple in `compile()`, as they are not used
4. fix https://github.com/rust-lang/rust/issues/69222 , compile c files and cpp files in different config
5. fix conditional compilation for musl target.
6. fix that x86_64-fortanix-unknown-sgx don't link libunwind built in build-script into rlib
36 lines
837 B
TOML
36 lines
837 B
TOML
[package]
|
|
authors = ["The Rust Project Developers"]
|
|
name = "unwind"
|
|
version = "0.0.0"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rust-lang/rust.git"
|
|
edition = "2018"
|
|
include = [
|
|
'/libunwind/*',
|
|
]
|
|
|
|
[lib]
|
|
test = false
|
|
bench = false
|
|
doc = false
|
|
|
|
[dependencies]
|
|
core = { path = "../core" }
|
|
libc = { version = "0.2.79", features = ['rustc-dep-of-std'], default-features = false }
|
|
compiler_builtins = "0.1.0"
|
|
cfg-if = "0.1.8"
|
|
|
|
[build-dependencies]
|
|
cc = "1.0.68"
|
|
|
|
[features]
|
|
|
|
# Only applies for Linux and Fuchsia targets
|
|
# Static link to the in-tree build of llvm libunwind
|
|
llvm-libunwind = []
|
|
|
|
# Only applies for Linux and Fuchsia targets
|
|
# If crt-static is enabled, static link to `libunwind.a` provided by system
|
|
# If crt-static is disabled, dynamic link to `libunwind.so` provided by system
|
|
system-llvm-libunwind = []
|