<div dir="ltr">Not a Cygwin person, but Reid might be able to answer that one.<div><br></div><div>MinGW doesn't use glibc though.</div><div><br></div><div>I'm personally ok saying we don't support Cygwin.  The point of my work is to make it work on actual Windows, not fake Windows anyway :)  And I think also that like you said it probably doesn't even work right now.</div><div><br></div><div>Even if we did want to support Cygwin though, then we already have LLDB_DISABLE_POSIX which could be used for the same purpose.  Each additional pre-processor conditional adds to the complexity and maintenance cost of the code (this thread is a good example :P)  so I'd like to remove the __GLIBC__ checks if possible and convert them into something more easily understandable.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 10:05 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What does a cygwin or minwing environment look like?  I would guess cygwin would have __GLIBC__ defined?  (I'm not sure if we even pretend to build there, but that's the glibc case that is not Linux that comes to mind).</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Sep 12, 2014 at 9:59 AM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">The important thing seems to be whether glibc implies linux, not the other way around.  If glibc implies linux, then <div><br></div><div>#if defined(__linux__) || defined(__GLIBC__)</div><div><br></div><div>can be reduced to</div><div><br></div><div>#if defined(__linux__)</div><div><br></div><div>The issue is that all of our CMake decisions are based on OS platform.  If I want to conditionally compile an entire file based on one of these conditions, I need to translate it into something that fits well into the CMake build.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 9:01 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Thu, Sep 11, 2014 at 7:07 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Thanks.  In some places we check __GLIBC__ explicitly.  I guess what I'm wondering is: is there some reason this isn't equivalent to some combination of OS define checks?</div></blockquote><div><br></div></span><div>You can use alternative libcs on Linux, like musl:</div><div><a href="http://www.musl-libc.org/" target="_blank">http://www.musl-libc.org/</a><br></div><div><br></div><div>Android, for example, uses a Linux kernel with the Bionic libc implementation, so it's complicated. =/</div></div></div></div>
</blockquote></div><br></div>
</div></div><br></div></div><span class="">_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</font></span></div>
</blockquote></div><br></div>