Dan Liew <dan at su-root.co.uk> writes:> On 7 July 2015 at 15:05, David A. Greene <greened at obbligato.org> wrote: >> I'm learning the cmake build. >> >> Is there a way to disable the build of a subdirectory in llvm/projects? >> I'm getting a build error on one project and don't want it to hold up >> the build of everything else. > > In your LLVM build directory run > > $ cmake -DLLVM_BUILD_EXAMPLES=OFF /path/to/llvm/source > > (note if you are using the makefile build you can run ``make > edit_cache`` to do the above). > > If you are still having problems you could also set > LLVM_INCLUDE_EXAMPLES to OFF. > > If you use ccmake or cmake gui these options are easily visibile, > you'll see a whole bunch of other useful options.I'm wondering about things like clang, lldb, etc. that are checked out in llvm's projects directory. Is there a way to skip building one of them? The lldb build is failing due to an ancient libc I can't replace. Yeah, I can just delete the directory but for various reasons it's more attractive not to have to do that. It would be nice to just tell CMake not to build that directory via a CMake variable or at build config time. -David
How about "LLVM_EXTERNAL_*_BUILD=OFF"? On Wed, Jul 8, 2015 at 12:23 PM David A. Greene <greened at obbligato.org> wrote:> Dan Liew <dan at su-root.co.uk> writes: > > > On 7 July 2015 at 15:05, David A. Greene <greened at obbligato.org> wrote: > >> I'm learning the cmake build. > >> > >> Is there a way to disable the build of a subdirectory in llvm/projects? > >> I'm getting a build error on one project and don't want it to hold up > >> the build of everything else. > > > > In your LLVM build directory run > > > > $ cmake -DLLVM_BUILD_EXAMPLES=OFF /path/to/llvm/source > > > > (note if you are using the makefile build you can run ``make > > edit_cache`` to do the above). > > > > If you are still having problems you could also set > > LLVM_INCLUDE_EXAMPLES to OFF. > > > > If you use ccmake or cmake gui these options are easily visibile, > > you'll see a whole bunch of other useful options. > > I'm wondering about things like clang, lldb, etc. that are checked out > in llvm's projects directory. Is there a way to skip building one of > them? The lldb build is failing due to an ancient libc I can't replace. > > Yeah, I can just delete the directory but for various reasons it's more > attractive not to have to do that. It would be nice to just tell CMake > not to build that directory via a CMake variable or at build config > time. > > -David > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150708/4f9520fb/attachment.html>
> On Jul 8, 2015, at 6:38 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote: > > How about "LLVM_EXTERNAL_*_BUILD=OFF”?This option actually doesn’t work well. In order to have the setting stick you need to run CMake twice. That was one of the bugs addressed in the patches you reverted last night.> > On Wed, Jul 8, 2015 at 12:23 PM David A. Greene <greened at obbligato.org <mailto:greened at obbligato.org>> wrote: > Dan Liew <dan at su-root.co.uk <mailto:dan at su-root.co.uk>> writes: > > > On 7 July 2015 at 15:05, David A. Greene <greened at obbligato.org <mailto:greened at obbligato.org>> wrote: > >> I'm learning the cmake build. > >> > >> Is there a way to disable the build of a subdirectory in llvm/projects? > >> I'm getting a build error on one project and don't want it to hold up > >> the build of everything else. > > > > In your LLVM build directory run > > > > $ cmake -DLLVM_BUILD_EXAMPLES=OFF /path/to/llvm/source > > > > (note if you are using the makefile build you can run ``make > > edit_cache`` to do the above). > > > > If you are still having problems you could also set > > LLVM_INCLUDE_EXAMPLES to OFF. > > > > If you use ccmake or cmake gui these options are easily visibile, > > you'll see a whole bunch of other useful options. > > I'm wondering about things like clang, lldb, etc. that are checked out > in llvm's projects directory. Is there a way to skip building one of > them? The lldb build is failing due to an ancient libc I can't replace.Do you mean “projects” or “tools”. clang, lldb, and lld should be in the tools directory not the projects directory. Those two directories have different build orders and are not inter-changable. -Chris> > Yeah, I can just delete the directory but for various reasons it's more > attractive not to have to do that. It would be nice to just tell CMake > not to build that directory via a CMake variable or at build config > time. > > -David > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu <http://llvm.cs.uiuc.edu/> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev <http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev> > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150708/05111d3f/attachment.html>