Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): add debug logging when adding a suffix...
details: https://anonhg.NetBSD.org/src/rev/ff3c11a2b965
branches: trunk
changeset: 946197:ff3c11a2b965
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 21 09:53:40 2020 +0000
description:
make(1): add debug logging when adding a suffix to the global list
diffstat:
usr.bin/make/suff.c | 5 +++--
usr.bin/make/unit-tests/suff-add-later.exp | 3 +++
usr.bin/make/unit-tests/suff-lookup.exp | 12 ++++++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
diffs (73 lines):
diff -r 9ffe0901aec6 -r ff3c11a2b965 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c Sat Nov 21 09:51:00 2020 +0000
+++ b/usr.bin/make/suff.c Sat Nov 21 09:53:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.255 2020/11/21 09:51:00 rillig Exp $ */
+/* $NetBSD: suff.c,v 1.256 2020/11/21 09:53:40 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
#include "dir.h"
/* "@(#)suff.c 8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.255 2020/11/21 09:51:00 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.256 2020/11/21 09:53:40 rillig Exp $");
#define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
#define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -702,6 +702,7 @@
suff = SuffNew(name);
Lst_Append(sufflist, suff);
+ DEBUG1(SUFF, "Adding suffix \"%s\"\n", suff->name);
UpdateTargets(inout_main, suff);
diff -r 9ffe0901aec6 -r ff3c11a2b965 usr.bin/make/unit-tests/suff-add-later.exp
--- a/usr.bin/make/unit-tests/suff-add-later.exp Sat Nov 21 09:51:00 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-add-later.exp Sat Nov 21 09:53:40 2020 +0000
@@ -1,6 +1,9 @@
+Adding suffix ".c"
+Adding suffix ".d"
defining transformation from `.c' to `.d'
inserting ".c" (1) at end of list
inserting ".d" (2) at end of list
+Adding suffix ".e"
defining transformation from `.d' to `.e'
inserting ".d" (2) at end of list
inserting ".e" (3) at end of list
diff -r 9ffe0901aec6 -r ff3c11a2b965 usr.bin/make/unit-tests/suff-lookup.exp
--- a/usr.bin/make/unit-tests/suff-lookup.exp Sat Nov 21 09:51:00 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-lookup.exp Sat Nov 21 09:53:40 2020 +0000
@@ -1,3 +1,9 @@
+Adding suffix ".c"
+Adding suffix ".cc"
+Adding suffix ".ccc"
+Adding suffix ".short"
+Adding suffix ".sho"
+Adding suffix ".dead-end"
defining transformation from `.ccc' to `.cc'
inserting ".ccc" (3) at end of list
inserting ".cc" (2) at end of list
@@ -18,14 +24,20 @@
inserting ".dead-end" (6) at end of list
inserting ".short" (4) at end of list
transformation .dead-end.short complete
+Adding suffix ".c"
+Adding suffix ".cc"
+Adding suffix ".ccc"
inserting ".ccc" (3) at end of list
inserting ".cc" (2) at end of list
inserting ".c" (1) at end of list
inserting ".ccc" (3) at end of list
+Adding suffix ".short"
inserting ".short" (4) at end of list
inserting ".c" (1) at end of list
+Adding suffix ".sho"
inserting ".sho" (5) at end of list
inserting ".c" (1) at end of list
+Adding suffix ".dead-end"
inserting ".dead-end" (6) at end of list
inserting ".short" (4) at end of list
Wildcard expanding "all"...
Home |
Main Index |
Thread Index |
Old Index