mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-22 05:33:55 +08:00
meson: Define MESA_DEBUG for latter usage
rationale: DEBUG is easily conflict with third-party headers, for example LLVM https://github.com/llvm/llvm-project/issues/24002#issuecomment-1673922017 And amdcommon's addrlib And according to https://github.com/llvm/llvm-project/issues/24002#issuecomment-1673922017 LLVM is already switched to LLVM_DEBUG, I think it's time for mesa switch to MESA_DEBUG for #ifdef DEBUG. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28092>
This commit is contained in:
parent
5d3ce49e76
commit
0578f13fc9
@ -961,6 +961,10 @@ if with_mesa_debug
|
||||
pre_args += '-DDEBUG'
|
||||
endif
|
||||
|
||||
# Define MESA_DEBUG to 1 for debug builds only (debugoptimized is not included on this one);
|
||||
# otherwise define MESA_DEBUG to 0
|
||||
pre_args += '-DMESA_DEBUG=' + (with_mesa_debug ? '1' : '0')
|
||||
|
||||
with_shader_cache = get_option('shader-cache') \
|
||||
.require(host_machine.system() != 'windows', error_message : 'Shader Cache does not currently work on Windows') \
|
||||
.allowed()
|
||||
|
Loading…
Reference in New Issue
Block a user