[Lldb-commits] [lldb] [LLDB] Define _BSD_SOURCE globally, to get optreset available in mingw's getopt.h (PR #76137)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 21 06:02:12 PST 2023
================
@@ -44,6 +44,10 @@ endif()
if (WIN32)
add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)
+ if (NOT MSVC)
----------------
compnerd wrote:
clang-cl should be detected as MSVC. The define should be generally safe, but it is nice to be more precise and add it when needed.
https://github.com/llvm/llvm-project/pull/76137
More information about the lldb-commits
mailing list