<div dir="ltr">Hi Reid,<div><br></div><div>First of all, Thank you very much for reply.</div><div><br></div><div>I tried your suggestions.</div><div><br></div><div><b>1. cmake -G "Visual Studio 14 Win64" ..\llvm</b></div><div><b>2. cmake -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 14" ..\llvm</b></div><div><br></div><div>In both the cases, it generates project successfully with default configuration to "Debug X64".</div><div>But cmake Generates below warning.</div><div><br></div><div><div>CMake Warning at CMakeLists.txt:39 (message):</div><div> Visual Studio generators use the x86 host compiler by default, even for</div><div> 64-bit targets. This can result in linker instability and out of memory</div><div> errors. To use the 64-bit host compiler, pass -Thost=x64 on the CMake</div><div> command line.</div></div><div><br></div><div>And it took cl.exe from below paths.</div><div><br></div><div>Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin<b>/x86_amd64</b>/cl.exe -- works<br></div><div>Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/<b>x86_amd64</b>/cl.exe -- works<br></div><div><br></div><div>Due to warning, I passed "-Thost=x64" arguments to cmake.</div><div><br></div><div><b>3. cmake -DCMAKE_GENERATOR_PLATFORM=x64 -Thost=x64 -G "Visual Studio 14" ..\llvm</b></div><div><b><br></b></div><div>Now, No warning message.</div><div><b><br></b></div><div><div>And it took cl.exe from below paths.</div></div><div><br></div><div>Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/<b>amd64</b>/cl.exe -- works<br></div><div>Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/<b>amd64</b>/cl.exe -- works<br></div><div><br></div><div><b>clang.exe also got built successfully.</b></div><div><br></div><div>Thanks & Regards,</div><div>Apoorva</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 17, 2018 at 11:06 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</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">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" target="_blank">https://cmake.org/cmake/help/<wbr>v3.9/generator/Visual%<wbr>20Studio%2015%202017.html</a>) <wbr>suggests that the new way is to pass "-DCMAKE_GENERATOR_PLATFORM=<wbr>x64".</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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_star<wbr>ted.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.o<wbr>bj : <b>fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'</b></div><div>2. x64\Debug\ClangASTNodesEmit<wbr>ter.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></div></div>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">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>
</blockquote></div><br></div>