Define __PRETTY_FUNCTION__ for Windows

mozilla/LinkedList.h uses __PRETTY_FUNCTION__ in debug builds, even when
using MSVC, so just define it to allow building with C++20.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-07-29 11:09:16 +02:00
parent af3f7acfe7
commit c12d52b8c3
No known key found for this signature in database

View file

@ -241,6 +241,11 @@ function project_set_build_flags()
debugenvs { "_NO_DEBUG_HEAP=1" }
end
if os.istarget("windows") then
-- mozilla 115 linked list destructor in debug build
defines { "__PRETTY_FUNCTION__=__FUNCSIG__" }
end
filter { "Debug", "action:vs*" }
defines { "DEBUG" }