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 committed 2025-08-12 20:45:15 +02:00
1 parent af3f7acfe7
commit c12d52b8c3
1 file changed
+5
+5
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" }