================
@@ -44,6 +44,10 @@ endif()
 
 if (WIN32)
   add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)
+  if (NOT MSVC)
----------------
mstorsjo wrote:

This was never defined for clang-cl/MSVC builds before. Note that the existing 
define I'm removing is within this context:

```
#if !defined(_MSC_VER) && !defined(__NetBSD__)

#ifdef _WIN32
#define _BSD_SOURCE // Required so that getopt.h defines optreset
#endif
```
So we previously only defined `_BSD_SOURCE` on `defined(_WIN32) && 
!defined(_MSC_VER)`, i.e. `if (WIN32 AND NOT MSVC)` in cmake (even if the 
condition nesting is the other way around there).

https://github.com/llvm/llvm-project/pull/76137
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to