Index: clang/www/get_started.html =================================================================== --- clang/www/get_started.html +++ clang/www/get_started.html @@ -61,6 +61,9 @@
  • cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
  • make
  • This builds both LLVM and Clang for debug mode.
  • +
  • Note: git does not ignore the build directory by default. You can add it + to .git/info/exclude to ignore it: + cd llvm-project && echo build >> .git/info/exclude
  • Note: For subsequent Clang development, you can just run make clang.
  • CMake allows you to generate project files for several IDEs: Xcode, Index: llvm/docs/GettingStarted.rst =================================================================== --- llvm/docs/GettingStarted.rst +++ llvm/docs/GettingStarted.rst @@ -51,6 +51,12 @@ * ``cd build`` * ``cmake -G [options] ../llvm`` + Note that git will not ignore the ``build`` directory by default. You can + add it to ``.git/info/exclude`` to ignore it: + + * ``cd llvm-project`` + * ``echo build >> .git/info/exclude`` + Some common generators are: * ``Ninja`` --- for generating `Ninja `_