Add `build` directory to gitignore

Message ID 20200703200722.132469-1-dxu@dxuuu.xyz
State New
Headers show
Series
  • Add `build` directory to gitignore
Related show

Commit Message

Daniel Xu July 3, 2020, 8:07 p.m.
This is useful for ignoring build artifacts on out of tree builds. Out
of tree build directories are typically named `build`.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>

---
 .gitignore | 1 +
 ChangeLog  | 4 ++++
 2 files changed, 5 insertions(+)

-- 
2.27.0

Comments

Tom Tromey July 11, 2020, 9:59 p.m. | #1
>>>>> "Daniel" == Daniel Xu <dxu@dxuuu.xyz> writes:


Daniel> This is useful for ignoring build artifacts on out of tree builds. Out
Daniel> of tree build directories are typically named `build`.

Normally top-level files are canonically maintained in the GCC tree.
So, you ought to send this to gcc-patches; and if it is approved there,
we will pull it in.

FWIW I think it's fine, though I can't approve such changes there.

Tom

Patch

diff --git a/.gitignore b/.gitignore
index 356b2eb94b..62cf79051f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,7 @@ 
 .libs
 
 autom4te.cache
+build
 config.cache
 config.h
 config.intl
diff --git a/ChangeLog b/ChangeLog
index f79c3e8fb5..1069a8810b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-07-03  Daniel Xu  <dxu@dxuuu.xyz>
+
+	* .gitignore: Add `build` directory
+
 2020-04-21  Stephen Casner  <casner@acm.org>
 
 	PR 25830