[PATCH] D59755: gitignore: Ignore in-tree Swift builds

Brian Gesiak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 18:34:30 PDT 2019


modocache created this revision.
modocache added reviewers: beanz, jordan_rose.
Herald added a reviewer: bollu.
Herald added a project: LLVM.

LLVM external tools such as Clang, lld, and Polly, can be built as part
of a unified CMake build. This is done by placing checkouts of these
projects in the `llvm/tools` directory (at least, this is how it was
done before the LLVM project began migrating to a monorepo model. I
don't know if or how this changed in a monorepo configuration).
To keep these projects from showing up as unstaged changes in a user's
Git checkout of LLVM, these projects are included in the `.gitignore`
file: `tools/clang`, `tools/lld`, etc.

Apple's Swift project is also capable of being built as part of a
unified CMake build (admittedly this is not the typically recommended
way of building the project, but the Swift project does include
extensive CMake code to make this type of build possible). When this
is done, it's placed in `tools/swift`. It also relies on another
dependency, which is placed in `tools/cmark`. Include these two
projects in the `.gitignore`, to make it easier for users to perform
unified builds.


Repository:
  rL LLVM

https://reviews.llvm.org/D59755

Files:
  .gitignore


Index: .gitignore
===================================================================
--- .gitignore
+++ .gitignore
@@ -57,6 +57,8 @@
 !runtimes/*.*
 # Clang, which is tracked independently.
 tools/clang
+# CMark, which is tracked independently.
+tools/cmark
 # LLDB, which is tracked independently.
 tools/lldb
 # lld, which is tracked independently.
@@ -65,6 +67,8 @@
 tools/llgo
 # Polly, which is tracked independently.
 tools/polly
+# Swift, which is tracked independently.
+tools/swift
 # avrlit, which is tracked independently.
 tools/avrlit
 # Sphinx build tree, if building in-source dir.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59755.192052.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190325/d814acd9/attachment.bin>


More information about the llvm-commits mailing list