[gjs/mozjs91] meson.build: Define __PRETTY_FUNCTION__ for MSVC



commit 4ea2beb3ce2dac03060fe9a3af1c2abb600f9670
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Aug 12 14:40:08 2021 +0800

    meson.build: Define __PRETTY_FUNCTION__ for MSVC
    
    Use the Microsoft-specific __FUNCSIG__ macro in its place.

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 0d81bc25..dd0430b6 100644
--- a/meson.build
+++ b/meson.build
@@ -45,6 +45,7 @@ if cc.get_id() == 'msvc'
         '-FImsvc_recommended_pragmas.h',
         '-EHsc',
         '-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS', # Don't worry about the C++17 deprecations
+        '-D__PRETTY_FUNCTION__=__FUNCSIG__',
         '-wd4099',
         '-wd4251',
         '-wd4291',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]