Fix va_list on watchOS and visionOS
This commit is contained in:
parent
a6d9da6b2a
commit
214d588a5b
@ -213,7 +213,7 @@ impl fmt::Debug for c_void {
|
|||||||
not(target_arch = "s390x"),
|
not(target_arch = "s390x"),
|
||||||
not(target_arch = "x86_64")
|
not(target_arch = "x86_64")
|
||||||
),
|
),
|
||||||
all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos")),
|
all(target_arch = "aarch64", target_vendor = "apple"),
|
||||||
target_family = "wasm",
|
target_family = "wasm",
|
||||||
target_os = "uefi",
|
target_os = "uefi",
|
||||||
windows,
|
windows,
|
||||||
@ -241,7 +241,7 @@ pub struct VaListImpl<'f> {
|
|||||||
not(target_arch = "s390x"),
|
not(target_arch = "s390x"),
|
||||||
not(target_arch = "x86_64")
|
not(target_arch = "x86_64")
|
||||||
),
|
),
|
||||||
all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos")),
|
all(target_arch = "aarch64", target_vendor = "apple"),
|
||||||
target_family = "wasm",
|
target_family = "wasm",
|
||||||
target_os = "uefi",
|
target_os = "uefi",
|
||||||
windows,
|
windows,
|
||||||
@ -265,7 +265,7 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
|
|||||||
/// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
|
/// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
target_arch = "aarch64",
|
target_arch = "aarch64",
|
||||||
not(any(target_os = "macos", target_os = "ios", target_os = "tvos")),
|
not(target_vendor = "apple"),
|
||||||
not(target_os = "uefi"),
|
not(target_os = "uefi"),
|
||||||
not(windows),
|
not(windows),
|
||||||
))]
|
))]
|
||||||
@ -362,10 +362,7 @@ pub struct VaList<'a, 'f: 'a> {
|
|||||||
not(target_arch = "s390x"),
|
not(target_arch = "s390x"),
|
||||||
not(target_arch = "x86_64")
|
not(target_arch = "x86_64")
|
||||||
),
|
),
|
||||||
all(
|
all(target_arch = "aarch64", target_vendor = "apple"),
|
||||||
target_arch = "aarch64",
|
|
||||||
any(target_os = "macos", target_os = "ios", target_os = "tvos")
|
|
||||||
),
|
|
||||||
target_family = "wasm",
|
target_family = "wasm",
|
||||||
target_os = "uefi",
|
target_os = "uefi",
|
||||||
windows,
|
windows,
|
||||||
@ -379,10 +376,7 @@ pub struct VaList<'a, 'f: 'a> {
|
|||||||
target_arch = "s390x",
|
target_arch = "s390x",
|
||||||
target_arch = "x86_64"
|
target_arch = "x86_64"
|
||||||
),
|
),
|
||||||
any(
|
any(not(target_arch = "aarch64"), not(target_vendor = "apple")),
|
||||||
not(target_arch = "aarch64"),
|
|
||||||
not(any(target_os = "macos", target_os = "ios", target_os = "tvos"))
|
|
||||||
),
|
|
||||||
not(target_family = "wasm"),
|
not(target_family = "wasm"),
|
||||||
not(target_os = "uefi"),
|
not(target_os = "uefi"),
|
||||||
not(windows),
|
not(windows),
|
||||||
@ -399,7 +393,7 @@ pub struct VaList<'a, 'f: 'a> {
|
|||||||
not(target_arch = "s390x"),
|
not(target_arch = "s390x"),
|
||||||
not(target_arch = "x86_64")
|
not(target_arch = "x86_64")
|
||||||
),
|
),
|
||||||
all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos")),
|
all(target_arch = "aarch64", target_vendor = "apple"),
|
||||||
target_family = "wasm",
|
target_family = "wasm",
|
||||||
target_os = "uefi",
|
target_os = "uefi",
|
||||||
windows,
|
windows,
|
||||||
@ -425,10 +419,7 @@ impl<'f> VaListImpl<'f> {
|
|||||||
target_arch = "s390x",
|
target_arch = "s390x",
|
||||||
target_arch = "x86_64"
|
target_arch = "x86_64"
|
||||||
),
|
),
|
||||||
any(
|
any(not(target_arch = "aarch64"), not(target_vendor = "apple")),
|
||||||
not(target_arch = "aarch64"),
|
|
||||||
not(any(target_os = "macos", target_os = "ios", target_os = "tvos"))
|
|
||||||
),
|
|
||||||
not(target_family = "wasm"),
|
not(target_family = "wasm"),
|
||||||
not(target_os = "uefi"),
|
not(target_os = "uefi"),
|
||||||
not(windows),
|
not(windows),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user