mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Remove Windows dependency on libc
This commit is contained in:
parent
30379f9bcc
commit
aa31281f2d
@ -33,9 +33,6 @@ addr2line = { version = "0.21.0", optional = true, default-features = false }
|
||||
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
|
||||
libc = { version = "0.2.153", default-features = false, features = ['rustc-dep-of-std'], public = true }
|
||||
|
||||
[target.'cfg(all(windows, target_env = "msvc"))'.dependencies]
|
||||
libc = { version = "0.2.153", default-features = false }
|
||||
|
||||
[target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies]
|
||||
object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
|
||||
|
||||
|
@ -435,6 +435,7 @@ extern crate alloc as alloc_crate;
|
||||
// so include it here even if it's unused.
|
||||
#[doc(masked)]
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(not(all(windows, target_env = "msvc")))]
|
||||
extern crate libc;
|
||||
|
||||
// We always need an unwinder currently for backtraces
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg(not(all(windows, target_env = "msvc")))]
|
||||
|
||||
use crate::any::TypeId;
|
||||
|
||||
macro_rules! ok {
|
||||
|
Loading…
Reference in New Issue
Block a user