<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
    <div id="smartTemplate4-template">
      <p> Clang from official installer works if you copy "C:\mingw64\*"
        to "C:\Program Files\LLVM\".<br>
      </p>
    </div>
    <br>
    <p>P.S.</p>
    <p>Use reply to all on LLVM mailing list.<br>
    </p>
    <br>
    <div id="smartTemplate4-quoteHeader">------ Original Message ------<br>
      Subject: Re: [cfe-dev] Anyone uses Clang 3.8 and higher on Windows
      with MinGW-w64?<br>
      Date: Mon, 20 Mar 2017 18:38:40 +0300<br>
      To: Mateusz Mikuła<br>
      From: Constantine</div>
    <blockquote
cite="mid:CADAOQX_U-aqduLRHLYeqJ1LCzj3wUyUTo2RBwrQzrqoqD5_rwQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Yaron, yes, I know it works, if I install Clang 3.7.0 or Clang 3.7.1
from llvm website it picks up a "C:\mingw64\bin" path from PATH env
variable, but when I replace them with Clang 3.8 or higher versions it
doesn't find the headers anymore and a basic hello world throws an
error that stdio.h can't be found.

Mateusz, thanks for reminding that MSYS2 has its own version of Clang!
Indeed, I installed Clang 3.9.1 and it works. Will stick with it for
now, just wanted to point out a possible issue with the official
installers.

On 3/20/17, Mateusz Mikuła <a class="moz-txt-link-rfc2396E" href="mailto:mati865@gmail.com"><mati865@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap=""> It's far from being drop-in replacement for GCC.

At MSYS2 we have patched Clang working only a little better than
installed from LLVM website but there is still a lot to fix.


------ Original Message ------
Subject: Re: [cfe-dev] Anyone uses Clang 3.8 and higher on Windows with
MinGW-w64?
Date: Mon, 20 Mar 2017 09:57:38 +0000
To: Constantine, Cfe-dev
From: Yaron Keren Via Cfe-dev
</pre>
        <blockquote type="cite">
          <pre wrap="">clang works fine with mingw-builds from
<a class="moz-txt-link-freetext" href="https://sourceforge.net/projects/mingw-w64/">https://sourceforge.net/projects/mingw-w64/</a>


‫בתאריך יום ב׳, 20 במרץ 2017 ב-6:31 מאת ‪Constantine via cfe-dev‬‏
<‪<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cfe-dev@lists.llvm.org"><mailto:cfe-dev@lists.llvm.org></a>‬‏>:‬

    I can't get it to work, Clang 3.8, 3.9 and 4.0 appear to ignore PATH
    environment variable and fail to find MinGW headers, while Clang 3.7
    and 3.7.1 can find and use them just fine.

    Anyone tried Clang 3.8+ versions with MinGW-w64?
    _______________________________________________
    cfe-dev mailing list
    <a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cfe-dev@lists.llvm.org"><mailto:cfe-dev@lists.llvm.org></a>
    <a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>



_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
        </blockquote>
        <pre wrap="">

</pre>
      </blockquote>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
  </body>
</html>