Skip to content

Commit 9f64023

Browse files
author
Kai Luo
committed
Use different cfg for AIX
1 parent d2402e3 commit 9f64023

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/std/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ rustc-demangle = { version = "0.1.21", features = ['rustc-dep-of-std'] }
3030
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
3131
miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
3232
addr2line = { version = "0.21.0", optional = true, default-features = false }
33-
object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive'] }
33+
34+
[target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies]
35+
object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
36+
37+
[target.'cfg(target_os = "aix")'.dependencies]
38+
object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'xcoff', 'unaligned', 'archive'] }
3439

3540
[dev-dependencies]
3641
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }

0 commit comments

Comments
 (0)