meson: set NDEBUG appropriately for OpenCL
this strips device-side asserts in release drivers. this is a behaviour change for asahi/panfrost/nvk, but hopefully a welcome one! Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Dylan Baker <dylan.c.baker@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33879>
This commit is contained in:
committed by
Marge Bot
parent
f35172b6a4
commit
256cc0c927
@@ -48,6 +48,10 @@ with_mesa_ndebug = get_option('b_ndebug') == 'true' or (get_option('buildtype')
|
||||
relative_dir = fs.relative_to(meson.global_source_root(), meson.global_build_root())
|
||||
cl_args = ['-fmacro-prefix-map=@0@/='.format(relative_dir)]
|
||||
|
||||
if with_mesa_ndebug
|
||||
cl_args += ['-DNDEBUG']
|
||||
endif
|
||||
|
||||
# Arguments for the preprocessor, put these in a separate array from the C and
|
||||
# C++ (cpp in meson terminology) arguments since they need to be added to the
|
||||
# default arguments for both C and C++.
|
||||
|
||||
Reference in New Issue
Block a user