mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 11:38:16 +02:00
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:
parent
c85d74aa5a
commit
339b1580ea
1 changed files with 5 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue