Time Nick Message 12:36 MTDiscord Is it intentional that asserts are always enabled in irr/ (but not src/) ? 12:37 MTDiscord for optimized release builds 12:37 sfan5 no idea 12:37 MTDiscord if you don't know who would 😮 12:40 MTDiscord that appears to be the current behavior. CMakeLists.txt in src/ includes -DNDEBUG in CMAKE_CXX_FLAGS_RELEASE, but irr/src does not include it. 12:43 sfan5 if you look at what the we did before https://github.com/minetest/irrlicht/blob/7173c2c62997b6416f17b90f9a50bff11fef1c4c/include/irrTypes.h#L68-L82 - https://github.com/minetest/irrlicht/blob/7173c2c62997b6416f17b90f9a50bff11fef1c4c/src/CMakeLists.txt#L23 12:43 sfan5 then it's apparent that asserts were only enabled in explicit debug builds 12:45 MTDiscord It looks like irrlicht preferred to have its own custom debug flag _DEBUG, rather than using NDEBUG 12:45 sfan5 (context: we replaced the IRR_DEBUG_BREAK_IF with normal asserts at some point) 12:46 sfan5 however I can't confirm what you said. I added assert(asdnlkjsdgoijsefbiuef); to some irrlicht file and there's no compile error 12:46 sfan5 using CMAKE_BUILD_TYPE=RelWithDebInfo 12:46 MTDiscord On linux? 12:47 sfan5 yes 12:47 sfan5 what it runs: /usr/bin/clang++ -DIRR_PREFER_SDL_GL_HEADER -D_IRR_COMPILE_WITH_JOYSTICK_EVENTS_ -D_IRR_COMPILE_WITH_OGLES2_ -D_IRR_COMPILE_WITH_OPENGL_ -D_IRR_COMPILE_WITH_SDL_DEVICE_ -D_IRR_POSIX_API_ -I... -I... -I... -I... -march=native -pipe -O2 -g -DNDEBUG -std=gnu++17 -fPIC -Wall -pipe -Werror=mismatched-tags -Wnull-dereference -MD -MT 12:47 sfan5 irr/src/CMakeFiles/IRRMESHOBJ.dir/WeightBuffer.cpp.o -MF CMakeFiles/IRRMESHOBJ.dir/WeightBuffer.cpp.o.d -o CMakeFiles/IRRMESHOBJ.dir/WeightBuffer.cpp.o -c .../src/WeightBuffer.cpp 12:48 sfan5 probably CMAKE_CXX_FLAGS_* is global including for subprojects? 12:50 MTDiscord I think it may only happen with Release, not RelWithDebInfo 12:50 MTDiscord but i'll check, one sec 12:55 MTDiscord yea confirmed. It only happens with Release, because irr/src/CMakeLists.txt overrides CMAKE_CXX_FLAGS_RELEASE, not CMAKE_CXX_FLAGS_RELWITHDEBINFO 12:58 sfan5 we should stop doing that then 13:00 MTDiscord > (...) -D_IRR_POSIXAPI -I... -I... -I... -I... -march=native (...) Why is this command stuttering ? XD 21:40 MTDiscord When will #17359 be merged? 21:40 ShadowBot https://github.com/luanti-org/luanti/issues/17359 -- HUD inventory: allow separate background by CodingMantisUA 21:40 MTDiscord It's got an approval under one approval rule 21:42 sfan5 whoever did the one and only review should do it