summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index a60b89b..04eb097 100644
--- a/main.c
+++ b/main.c
@@ -577,6 +577,9 @@ main (argc, argv, envp)
makelevel = 0;
}
+ /* Always do -w in sub-makes and under -C. */
+ print_directory_flag |= directories != 0 || makelevel > 0;
+
/* Construct the list of include directories to search. */
construct_include_path (include_directories == 0 ? (char **) 0