On 2019-07-03 8:49 p.m., Marek Olšák wrote: > NDEBUG is set = release > NDEBUG is not set = debugoptimized > NDEBUG is not set and DEBUG is set = debug > > NDEBUG is not set ---> enable assertions and cheap debug code, NIR enables > expensive validations > DEBUG is set ---> enable possibly very expensive debug code, may be > replaced by !NDEBUG in the future
There is no such connection between DEBUG and NDEBUG. DEBUG is controlled by the meson buildtype configuration item, release and debugoptimized being two out of more possible values. NDEBUG is controlled by meson's b_ndebug configuration item. While its default value depends on the build type, it can be freely enabled or disabled with any build type. -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev