[Lldb-commits] [lldb] f94c9af - [lldb] Fix windows build failure due to undefined macro

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 8 09:27:37 PDT 2021


Author: Med Ismail Bennani
Date: 2021-10-08T18:27:21+02:00
New Revision: f94c9af6227f49c5da5bf1c9f97fdf887d26774c

URL: https://github.com/llvm/llvm-project/commit/f94c9af6227f49c5da5bf1c9f97fdf887d26774c
DIFF: https://github.com/llvm/llvm-project/commit/f94c9af6227f49c5da5bf1c9f97fdf887d26774c.diff

LOG: [lldb] Fix windows build failure due to undefined macro

This should fix a build failure on Windows caused by the macro
__PRETTY_FUNCTION__ not being defined.

https://lab.llvm.org/buildbot/#/builders/83/builds/10836

https://reviews.llvm.org/D107585

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>

Added: 
    

Modified: 
    lldb/include/lldb/Interpreter/ScriptedInterface.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Interpreter/ScriptedInterface.h b/lldb/include/lldb/Interpreter/ScriptedInterface.h
index 38164739bab5..bd1ed11279f4 100644
--- a/lldb/include/lldb/Interpreter/ScriptedInterface.h
+++ b/lldb/include/lldb/Interpreter/ScriptedInterface.h
@@ -9,6 +9,10 @@
 #ifndef LLDB_INTERPRETER_SCRIPTEDINTERFACE_H
 #define LLDB_INTERPRETER_SCRIPTEDINTERFACE_H
 
+#ifdef _MSC_VER
+#define __PRETTY_FUNCTION__ __FUNCSIG__
+#endif
+
 #include "lldb/Core/StructuredDataImpl.h"
 #include "lldb/Target/ExecutionContext.h"
 #include "lldb/Utility/Log.h"


        


More information about the lldb-commits mailing list