On 12 September 2014 13:26, Zachary Turner <ztur...@google.com> wrote: > Is there any value in having an LLDB_HOST_XXX set of macros such as the > following: > > LLDB_HOST_APPLE > LLDB_HOST_WIN32 > LLDB_HOST_MINGW > LLDB_HOST_LINUX > LLDB_HOST_BSD > > The last one would translate to __FreeBSD__ || __FreeBSD_kernel__ || > __OpenBSD__ || __NetBSD__
Except that __FreeBSD_kernel__ wouldn't be included; I'd be surprised to find LLDB_HOST_BSD true on Debian kFreeBSD. It's distinct enough that it would need it's own. We'll also still need to test for more than one of these in some cases though -- for example, for socket behaviour that is shared between OS X and the BSDs. I think cleaning up these macro tests is a laudable goal, but it's inherently not possible to cleanly cover all cases. _______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev