<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvmpipe Windows scons build with MSVC toolchain and LLVM 4.0 fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100201#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvmpipe Windows scons build with MSVC toolchain and LLVM 4.0 fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100201">bug 100201</a>
              from <span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="Jose Fonseca <jfonseca@vmware.com>"> <span class="fn">Jose Fonseca</span></a>
</span></b>
        <pre>(In reply to Anonymous Helper from <a href="show_bug.cgi?id=100201#c8">comment #8</a>)
<span class="quote">> (In reply to Jose Fonseca from <a href="show_bug.cgi?id=100201#c7">comment #7</a>)
> > The links errors are possibly due to Mesa and LLVM not being built exactly
> > with the same compiler as Mesa, no?
> LLVM 4.0 was built with MSVC 2017 toolset. I get linker errors regardless of
> what toolset I use to build Mesa (MSVC 2015 or 2017). Building LLVM with
> MSVC 2015 toolset requires the whole Viual Studio 2015 because CMake uses
> Msbuild tool which backward compatibility toolsets like MSVC 2015 toolset on
> MSVC 2017 don't have access to. </span >

FWIW, you can use also use CMake with Ninja which enables you to use any
vcvarsall.bat file you want.  The process there

  call path\to\vcvarsall.bat
  cmake -G Ninja -Hpath\to\llvm-src -Bpath\to\llvm-bld ...
  ninja -C path\to\llvm-bld

<span class="quote">> The log I posted in all attachments is from this script:
> <a href="https://github.com/pal1000/mesa-dist-win/tree/master/buildscript">https://github.com/pal1000/mesa-dist-win/tree/master/buildscript</a></span >

Thanks.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>