<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">First of all thanks for the great work with Build2. I'm starting using it, but it seems a great tool.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to compile a simple hello sample on windows. I have MSVC Community 2017 and Clang 6 (built from source) installed.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">When I compile with msvc, everything works fine. But when I try to use Clang, I get this:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>C:\Tests\Build2\hello\clang-6><wbr>b<br></div><div>../hello/build\root.build:3:7: error: cc and bin module target mismatch</div><div>  info: cc.target is x86_64-windows-msvc</div><div>  info: bin.target is x86_64-windows-msvc</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px"><span style="font-size:12.8px">Am I doing anything wrong?</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">P.S.: Sending the compressed project in the attachment, as well as my configurations.</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards,</div><div style="font-size:12.8px">Jack</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">P.P.S: <span style="font-size:12.8px">For more info: </span></div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">C:\Tests\Build2\hello\clang-6>b -V</span></div><div><span style="font-size:12.8px">clang++ -v</span></div><div><span style="font-size:12.8px">clang++ -dumpmachine</span></div><div><span style="font-size:12.8px">clang++ -print-search-dirs</span></div><div><span style="font-size:12.8px">clang++ -x c++ -v -E -</span></div><div><span style="font-size:12.8px">cxx hello@C:\Tests\Build2\hello\clang-6\</span></div><div><span style="font-size:12.8px">  cxx        clang++@C:\LLVM\build\bin\clang++.exe</span></div><div><span style="font-size:12.8px">  id         clang</span></div><div><span style="font-size:12.8px">  version    6.0.0 (<a href="https://llvm.org/git/clang.git">https://llvm.org/git/clang.git</a> cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (<a href="https://llvm.org/git/llvm.git">https://llvm.org/git/llvm.git</a> ff7724479284555eb1d624c9e19e285408f1f45a)</span></div><div><span style="font-size:12.8px">  major      6</span></div><div><span style="font-size:12.8px">  minor      0</span></div><div><span style="font-size:12.8px">  patch      0</span></div><div><span style="font-size:12.8px">  build      (<a href="https://llvm.org/git/clang.git">https://llvm.org/git/clang.git</a> cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (<a href="https://llvm.org/git/llvm.git">https://llvm.org/git/llvm.git</a> ff7724479284555eb1d624c9e19e285408f1f45a)</span></div><div><span style="font-size:12.8px">  signature  clang version 6.0.0 (<a href="https://llvm.org/git/clang.git">https://llvm.org/git/clang.git</a> cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (<a href="https://llvm.org/git/llvm.git">https://llvm.org/git/llvm.git</a> ff7724479284555eb1d624c9e19e285408f1f45a)</span></div><div><span style="font-size:12.8px">  checksum   1e14baef11417d52df424fd3528c580500e7d020e7ca841bbf6660cd6cc2da5e</span></div><div><span style="font-size:12.8px">  target     x86_64-windows-msvc (x86_64-pc-windows-msvc)</span></div><div><span style="font-size:12.8px">  inc dirs</span></div><div><span style="font-size:12.8px">    C:\LLVM\build\lib\clang\6.0.0\include\</span></div><div><span style="font-size:12.8px">    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\</span></div><div><span style="font-size:12.8px">    C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\</span></div><div><span style="font-size:12.8px">    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\</span></div><div><span style="font-size:12.8px">    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\</span></div><div><span style="font-size:12.8px">    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\</span></div><div><span style="font-size:12.8px">  lib dirs</span></div><div><span style="font-size:12.8px">    C:\LLVM\build\lib\clang\6.0.0\</span></div><div><span style="font-size:12.8px">bin hello@C:\Tests\Build2\hello\clang-6\</span></div><div><span style="font-size:12.8px">  target     x86_64-windows-msvc</span></div><div><span style="font-size:12.8px">../hello/build\root.build:1:7: error: cc and bin module target mismatch</span></div><div><span style="font-size:12.8px">  info: cc.target is x86_64-windows-msvc</span></div><div><span style="font-size:12.8px">  info: bin.target is x86_64-windows-msvc</span></div><div><span style="font-size:12.8px">info: scheduler statistics:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">  thread_max_active      8</span></div><div><span style="font-size:12.8px">  thread_max_total       64</span></div><div><span style="font-size:12.8px">  thread_helpers         0</span></div><div><span style="font-size:12.8px">  thread_max_waiting     0</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">  task_queue_depth       32</span></div><div><span style="font-size:12.8px">  task_queue_full        0</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">  wait_queue_slots       31</span></div><div><span style="font-size:12.8px">  wait_queue_collisions  0</span></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>C:\Tests\Build2\hello\msvc-17><wbr>b<br></div><div>c++ ../hello/cxx{hello}</div><div>ld exe{hello}</div><div><br></div><div>C:\Tests\Build2\hello\msvc-17><wbr>hello</div><div>Hello</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>C:\Tests\Build2\hello\msvc-17><wbr>b --version</div><div>build2 0.7.0-a.0.9c2d5db91cf075b8</div><div>libbutl 0.7.0-a.0.d3a648d5b746cecb</div><div>host i386-microsoft-win32-msvc14.1</div><div>Copyright (c) 2014-2017 Code Synthesis Ltd</div><div>This is free software released under the MIT license.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div>