From 339b1580ea6f82d0f05e2e1efd5410b21aff7430 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 27 Mar 2026 14:34:12 +0100 Subject: [PATCH] Meson: Fix compilation with CLangCL Support for __uint128_t in CLangCL is currently broken [1]. Avoid using that type for now. As of today MSVC doesn't support 128-bit integral types; with this change we get feature-parity between MSVC and CLangCL, so this shouldn't be a problem. References: * Clang-cl generates a call to an undefined symbol __udivti3 https://github.com/llvm/llvm-project/issues/25679 --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 11525ea84..48fd6bb13 100644 --- a/meson.build +++ b/meson.build @@ -148,9 +148,13 @@ check_headers = [ check_types = [ ['uint64_t', {'headers': ['stdint.h']}], ['uint128_t', {'headers': ['stdint.h']}], - ['__uint128_t'] ] +# https://github.com/llvm/llvm-project/issues/25679 +if cc.get_id() != 'clang-cl' + check_types += [ ['__uint128_t'] ] +endif + check_funcs = [ 'alarm', 'ctime_r',