[llvm-dev] Newbie question on building with Visual Studio

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 6 15:59:44 PDT 2020


I know nothing about Ninja, but I put it on my "must read" list. It's a mighty long list.

At 8/6/2020 06:49 PM, Adrian McCarthy wrote:
>I think David is on the right track.  From your build output, it looks like it was asked to build only the LLVMTableGen project, which corresponds to the library.  If you just ask Visual Studio to build the solution (F7, or Build menu -> Build Solution) rather than an individual project.  It looks like Cmake put all the right project dependency information into the solution, so it should just work.
>
>For LLVM, however, I usually use ninja to build outside Visual Studio.  It does a better job building things in parallel and keeping all the cores working.  I find the Visual Studio solution for LLVM is still very useful for all of its editing, browsing, and debugging features.
>
>On Thu, Aug 6, 2020 at 3:06 PM David Blaikie via llvm-dev <<mailto:llvm-dev at lists.llvm.org>llvm-dev at lists.llvm.org> wrote:
>I don't work on Windows, so have next to no idea - but when you say
>you "aske it to build TableGen" what do you mean, specifically?
>Perhaps you asked it to build the TableGen library - so that's what it
>did? Can you instead ask it to build llvm-tblgen?
>
>On Thu, Aug 6, 2020 at 2:12 PM Paul C. Anagnostopoulos via llvm-dev
><<mailto:llvm-dev at lists.llvm.org>llvm-dev at lists.llvm.org> wrote:
>>
>> I made a simple edit to TGlexer.h, which is part of TableGen. Then, in Visual Studio, I asked it to build Tablegen. I got the following output:
>>
>> 1>------ Build started: Project: LLVMTableGen, Configuration: Release x64 ------
>> 1>Main.cpp
>> 1>TGLexer.cpp
>> 1>TGParser.cpp
>> 1>LLVMTableGen.vcxproj -> D:\LLVM\Build\Release\lib\LLVMTableGen.lib
>> ========== Build: 1 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========
>>
>> Makes sense to me. But why doesn't it continue on and relink llvm-tblgen.exe? I spent about half an hour searching the interwebs, but all I could find was complaints about building too much, not too little.
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> <mailto:llvm-dev at lists.llvm.org>llvm-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>_______________________________________________
>LLVM Developers mailing list
><mailto:llvm-dev at lists.llvm.org>llvm-dev at lists.llvm.org
>https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list