mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 23:00:11 +01:00
meson: Correctly get sizeof_pointer with cross-compilers
"native : true" used build system's compiler to determine
sizeof void*, which is wrong - we need to use host compiler.
Found when using pure NIX cross-compilation environment.
Fixes: ad34c932cd
("glapi: pass pointer size to python for glthread from meson")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.co
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28177>
This commit is contained in:
parent
d2229304dc
commit
2aab8e0806
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ project(
|
|||
cc = meson.get_compiler('c')
|
||||
cpp = meson.get_compiler('cpp')
|
||||
|
||||
sizeof_pointer = meson.get_compiler('c', native : true).sizeof('void*').to_string()
|
||||
sizeof_pointer = cc.sizeof('void*').to_string()
|
||||
|
||||
null_dep = dependency('', required : false)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue