automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 1/2] [ng] perf: disable GNU make builtin rules, for


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 1/2] [ng] perf: disable GNU make builtin rules, for performance reasons
Date: Wed, 27 Jun 2012 18:05:05 +0200

* lib/am/header-vars (MAKEFLAGS): Append '--no-builtin-rules'.  This
enhance performance by removing GNU make builtin rules that would be
rather irrelevant (e.g., rules to automatically check out files from
from RCS or SCCS repositories), or overridden by Automake (e.g., rules
to compile C or C++ files).  With this simple tweak, the null-build
time on GNU coreutils on an aging Debian system goes down from ~ 20
seconds to ~ 9 seconds.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/header-vars.am |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am
index eccfec5..75e5a3a 100644
--- a/lib/am/header-vars.am
+++ b/lib/am/header-vars.am
@@ -16,6 +16,13 @@
 
 VPATH = @srcdir@
 
+## Enhance performance by removing GNU make builtin rules that would be
+## rather irrelevant (e.g., rules to automatically check out files from
+## from RCS or SCCS repositories), or overridden by Automake (e.g., rules
+## to compile C or C++ files).  For larger packages (like GNU coreutils),
+## this can greatly speed up null or almost-null builds, up to even 50%!
+MAKEFLAGS += --no-builtin-rules
+
 ## Declare an error, without immediately terminating the execution (proper
 ## code will take care later of that).  This will allow us to diagnose more
 ## issues at once, rather than stopping at the first one.
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]