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
This commit is contained in:
Luca Bacci 2026-03-27 14:34:12 +01:00
parent c85d74aa5a
commit 339b1580ea

View file

@ -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',