From f13292abbc1dfddb0be73e1e9747656f8432c16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 7 Apr 2025 11:52:14 +0200 Subject: [PATCH] zig_clang: Fix size of ZigClangAPValue for Clang 20. Fixes failing tarball builds for x86-linux and x86-windows. The MSVC special case here is very sus, but that's a problem for another day. --- src/zig_clang.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/zig_clang.h b/src/zig_clang.h index 167a8972cd..76c0cef221 100644 --- a/src/zig_clang.h +++ b/src/zig_clang.h @@ -68,12 +68,10 @@ enum ZigClangAPValueKind { struct ZigClangAPValue { enum ZigClangAPValueKind Kind; // experimentally-derived size of clang::APValue::DataType -#if defined(_WIN32) && defined(__i386__) - char Data[68]; -#elif defined(_WIN32) && defined(_MSC_VER) +#if defined(_WIN32) && defined(_MSC_VER) char Data[52]; -#elif defined(__i386__) - char Data[48]; +#elif defined(__i386__) && !defined(_WIN32) + char Data[44]; #else char Data[52]; #endif