<div dir="ltr">I recently fixed the libc++ build with mingw, but I would say that Cygwin is pretty unsupported. There are other mingw users: Matteuz, Martel Mallone, Yaron Keron, and others. I don't know to what extend they use libc++ currently, or what the current support state is like.<div><br></div><div>Broadly speaking, users seem to me moving away from thick posix emulation layers like cygwin and over to less emulation (mingw) or no emulation (just use MSVCRT).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 9:36 AM, Shoaib Meenai via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div id="m_2658759416547479131compose-container" style="direction:ltr">
<span><span content="Outlook Mobile for iOS"></span></span>
<div>
<div style="direction:ltr">None of us have worked on (or intend on working on, as far as I'm aware) Cygwin or MinGW support. We're just working with the native Windows toolchain.</div>
<div><br>
</div>
<div class="m_2658759416547479131acompli_signature">Get <a href="https://aka.ms/o0ukef" target="_blank">Outlook for iOS</a></div>
<div class="gmail_quote">_____________________________<br>
From: Ben Craig <<a dir="ltr" href="mailto:ben.craig@ni.com" target="_blank">ben.craig@ni.com</a>><br>
Sent: Thursday, April 20, 2017 6:16 AM<br>
Subject: RE: [cfe-dev] [libcxx] What degree of Windows and/or MSVC support is already present?<br>
To: Shoaib Meenai <<a dir="ltr" href="mailto:smeenai@fb.com" target="_blank">smeenai@fb.com</a>>, via cfe-dev <<a dir="ltr" href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
Cc: Saleem Abdulrasool <<a dir="ltr" href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</a>>, Eric Fiselier <<a dir="ltr" href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>><br>
<br>
<br>



<div class="m_2658759416547479131WordSection1"><span class="">
<p class="MsoNormal">Thanks for the info.  I somehow missed the mention of experimental windows support on the BuildingLibcxx page.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Are there any efforts to support things like Cygwin?  Or is clang-cl targeting Win32 and x64 desktops the extent of things now?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Also, many thanks to EricWF for getting a Windows buildbot up!</p>
<p class="MsoNormal"> </p>
</span><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><span class="">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Shoaib Meenai [<a dir="ltr" href="mailto:smeenai@fb.com" target="_blank">mailto:smeenai@fb.com</a>]
<br>
<b>Sent:</b> Wednesday, April 19, 2017 3:58 PM<br>
<b>To:</b> Ben Craig <<a dir="ltr" href="mailto:ben.craig@ni.com" target="_blank">ben.craig@ni.com</a>>; via cfe-dev <<a dir="ltr" href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
<b>Cc:</b> Saleem Abdulrasool <<a dir="ltr" href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</a>>; Eric Fiselier <<a dir="ltr" href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>><br>
<b>Subject:</b> Re: [cfe-dev] [libcxx] What degree of Windows and/or MSVC support is already present?</p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">compnerd (CC'd) did the initial work to port libc++ to Windows (including adding support for native Windows threading). EricWF (also CC'd) continued that work, particularly around tests and vcruntime support. I've done some fix-ups here
 and there.</p>
<p class="MsoNormal"> </p>
</span><p class="MsoNormal">Last I checked, libc++ on Windows x86 compiled successfully with clang-cl, and only failed around 200 tests (out of over 5000). There's documentation for building and running tests on Windows at<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__libcxx.llvm.org_docs_BuildingLibcxx.html-23experimental-2Dsupport-2Dfor-2Dwindows&d=DwMGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=gCVvnEyF72ReAUBz7nZ-H5_ylVVgew6CXpPPBs_6fRo&s=hPQ92jT2EbatM8zTn1UPXwLQiz-G1IvrDvwP-JU7SRU&e=" target="_blank">http://libcxx.llvm.org/docs/<wbr>BuildingLibcxx.html#<wbr>experimental-support-for-<wbr>windows</a>.
 I was maintaining a Google Doc tracking the test failures at<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_spreadsheets_d_1Yonp8WidaIBb9mmzy6aV92wbjBYEargyrlIYc75r3Gk_edit-23gid-3D0&d=DwMGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=gCVvnEyF72ReAUBz7nZ-H5_ylVVgew6CXpPPBs_6fRo&s=Nd7pFRzuU3z5B5bd9a1RAjGzUemTIFJDnPt5RstVgo8&e=" target="_blank">https://docs.google.com/<wbr>spreadsheets/d/<wbr>1Yonp8WidaIBb9mmzy6aV92wbjBYEa<wbr>rgyrlIYc75r3Gk/edit#gid=0</a>,
 though it's probably fairly out of date now. EricWF also set up an appveyor bot at<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__ci.appveyor.com_project_EricWF_libcxx&d=DwMGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=gCVvnEyF72ReAUBz7nZ-H5_ylVVgew6CXpPPBs_6fRo&s=quwA3R7Or8hVaaW3p2bD4an33OSGRYO2jbQymGjxHoI&e=" target="_blank">https://ci.appveyor.com/<wbr>project/EricWF/libcxx</a>.</p><span class="">
<p class="MsoNormal"> </p>
<p class="MsoNormal">One known issue is a lack of locale support (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.llvm.org_show-5Fbug.cgi-3Fid-3D31516&d=DwMGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=gCVvnEyF72ReAUBz7nZ-H5_ylVVgew6CXpPPBs_6fRo&s=vgvM_yT1a_o4Kgjo4in2GXywOFiZoVQ6H60Lf35DCQM&e=" target="_blank">https://bugs.llvm.org/show_<wbr>bug.cgi?id=31516</a>).
 I'll be working more on addressing that (and the remaining test failures) over the next couple of months.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">cl support hasn't been an explicit goal for any of us yet. It would definitely be nice to have though, and I'm aware of the work you've been doing on that front.</p>
<p class="MsoNormal"> </p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">cfe-dev <</span><a href="mailto:cfe-dev-bounces@lists.llvm.org" target="_blank">cfe-dev-bounces@lists.llvm.<wbr>org</a><span style="color:black">> on behalf of cfe-dev <</span><a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><span style="color:black">><br>
<b>Reply-To: </b>Ben Craig <</span><a href="mailto:ben.craig@ni.com" target="_blank">ben.craig@ni.com</a><span style="color:black">><br>
<b>Date: </b>Wednesday, April 19, 2017 at 1:33 PM<br>
<b>To: </b>cfe-dev <</span><a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><span style="color:black">><br>
<b>Subject: </b>[cfe-dev] [libcxx] What degree of Windows and/or MSVC support is already present?</span><span style="font-size:12.0pt;color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span></p>
</div>
<p class="MsoNormal">I’ve seen some commits (largely from smeenai) that deal with Microsoft technologies.  I’m curious as to what is currently supported, and what is in progress, as it is relevant to my aspirations of Windows kernel support with MSVC 2017.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is any Microsoft platform as a target supported from any compiler?  Is any Microsoft compiler supported?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I know the tests have had substantial fixes and restructuring in order to be used by the Microsoft libraries team (STL et al).  If libcxx itself has some configuration that works though, I’d like to know how to set it up so that I don’t
 break it.</p>
</span></div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>