[Lldb-commits] [PATCH] D79999: [lldb] [Windows] Provide vasprintf only for MSVC

Martin Storsjö via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 15 11:25:17 PDT 2020


mstorsjo added a comment.

In D79999#2039069 <https://reviews.llvm.org/D79999#2039069>, @mati865 wrote:

> Perhaps you are building with Clang?
>  I don't remember the message but GCC emits error about incompatible definition and declaration of `vasprintf`. I can build it without the patch and paste the error if you want.


I took a look now, and I see that the mingw-w64 `vasprintf` only is visible if `_GNU_SOURCE` is defined. So apparently something is setting that in your build, but not in mine - and thus this patch would actually break my build...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79999/new/

https://reviews.llvm.org/D79999





More information about the lldb-commits mailing list