[Lldb-commits] [PATCH] D55995: [lldb] - Fix compilation with MSVS 2015 update 3

George Rimar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 26 06:42:08 PST 2018

grimar added a comment.

In D55995#1339099 <https://reviews.llvm.org/D55995#1339099>, @clayborg wrote:

> The changes from "constexpr" to "const" might introduce global constructors in the shared library which is what we were trying to avoid. The less work that the LLDB shared library does on load the better. We might need to use a macro that expands to "constexpr" for non windows and to "const" for windows in a private LLDB header (PropertyDefinition.h?)

Thanks for looking, Greg. Initially, I thought only MSVS 2015 is affected, but looking at the comments in the wild (https://developercommunity.visualstudio.com/content/problem/18155/msvc-2017-c-fatal-error-c1001-constexpr-initializa.html),
seems it might be an issue for MSVS 2017 too. So I am going to implement your suggestion. Seems lldb.lldb-defines.h file we already have is a good place for a new macro definition.



More information about the lldb-commits mailing list