<div dir="ltr">If you had to change the default platform target to debug-x64, it sounds like CMake did not generate x64 project files. I believe our CMake scripts do not support generating projects that allow changing from x86 to x64.<div><br></div><div>I am only familiar with the old way to generate x64 project files, which is to use the "Visual Studio 14 Win64" generator or something like that. The documentation (<a href="https://cmake.org/cmake/help/v3.9/generator/Visual%20Studio%2015%202017.html">https://cmake.org/cmake/help/v3.9/generator/Visual%20Studio%2015%202017.html</a>) suggests that the new way is to pass "-DCMAKE_GENERATOR_PLATFORM=x64".</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 16, 2018 at 10:26 PM, Apoorva Paneliya 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 dir="ltr"><div>hi all,</div><div><br></div><div><a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_<wbr>started.html</a> <br></div><div>I am followed the instruction given in above article for compiling 64-bit toolset on windows using Visual studio 15.</div><div><br></div><div><br></div><div>Command used for visual studio project generation:- <b>cmake -Thost=x64 -G "Visual Studio 14" ..\llvm</b></div><div><b><br></b></div><div>it successfully generates LLVM.sln.</div><div><b>Now, open LLVM.sln and change the platform target to "debug-x64".</b></div><div>start building clang.exe project.</div><div><br></div><div>I am seeing below errors.</div><div><br></div><div>1. x64\Debug\ItaniumDemangle.<wbr>obj : <b>fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'</b></div><div>2. x64\Debug\<wbr>ClangASTNodesEmitter.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'</div><div>3. x64\Debug\AsmLexer.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'</div><div><br></div><div>And many more such error.</div><div><br></div><div><b>so, what to know solution for such errors or am i missing any steps?</b></div><div><b><br></b></div><div>Thanks in advance.!!</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>