<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Can we just ship the source for libxml2 in the repository and build it from source if it is not found? A quick google tells me that it’s MIT licensed so perhaps it wouldn’t be too controversial.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> cfe-dev <cfe-dev-bounces@lists.llvm.org> <b>On Behalf Of
</b>Adrian McCarthy via cfe-dev<br>
<b>Sent:</b> Tuesday, August 24, 2021 10:22 AM<br>
<b>To:</b> Ben Boeckel <ben.boeckel@kitware.com><br>
<b>Cc:</b> clang developer list <cfe-dev@lists.llvm.org><br>
<b>Subject:</b> Re: [cfe-dev] Cannot CMake self-hosted clang on Windows for lack of libxml2<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p align="center" style="text-align:center"><strong><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:yellow">WARNING:</span></strong><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:yellow">
 This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">>  Could an issue please be filed about this? CMake tries hard to not break<br>
backwards compat, though we're not perfect (and we can't fix what we're<br>
not aware of). <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I appreciate that, but I don't think this is a CMake bug.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">In this instance, llvm-mt is supposed to be a cross-platform drop-in alternative for mt.exe.  In theory, it shouldn't matter which one CMake selects.  And, in fact, the point of a self-hosted build is to use the LLVM tool chain.  The fact
 that llvm-mt's dependencies aren't met on Windows seems like an LLVM problem, either in the tool itself or in the documentation about how to set up the development environment.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[Rant about the near-infinite size of LLVM's "supported" configuration space elided, for now.]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Aug 23, 2021 at 5:12 PM Ben Boeckel <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On Mon, Aug 23, 2021 at 15:17:21 -0700, Adrian McCarthy via cfe-dev wrote:<br>
> Yikes!  Thanks for the heads up.<br>
> <br>
> This is the third time I've bisected to find build configuration problems<br>
> that affect only certain Windows configurations only to learn that it was<br>
> (primarily) a change in our tools that broke things (retroactively).  Since<br>
> the bot configurations aren't updated very often, it's easy for these<br>
> problems to go unnoticed for a very long time.<br>
<br>
*Puts on CMake developer hat*<br>
<br>
Could an issue please be filed about this? CMake tries hard to not break<br>
backwards compat, though we're not perfect (and we can't fix what we're<br>
not aware of).<br>
<br>
> It's one thing not to have hermetic builds, but it's quite another to allow<br>
> every developer to choose from a wide range of versions for each of the<br>
> myriad tools necessary to build the product.  The builds are so sensitive<br>
> to so many details of the environment, it's rather amazing to me how often<br>
> we manage to succeed.<br>
<br>
Yes, and CMake tries not to be the bump in the road there, but we can<br>
fix this in 3.20.6 and 3.21.2 (maybe 3.21.3, depends on how intricate<br>
the fix is).<br>
<br>
Thanks,<br>
<br>
--Ben<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>