summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2021-05-30 18:47:50 -0400
committerPaul Smith <psmith@gnu.org>2021-09-03 12:08:11 -0400
commitb9c4fc441b2d66312a592bf4eab67ef7fbe4c645 (patch)
tree51d517f6cb9b6398eed3abdc53259cddce51b786 /NEWS
parent65b73ce4342cdfa2486be406e9df5f9effb7fd7c (diff)
downloadmake-git-b9c4fc441b2d66312a592bf4eab67ef7fbe4c645.tar.gz
[SV 60412] Allow -I- to throw out the current directory path
Accept a "-" directory value to the -I option to clear the set of directories to be searched up to that point, including the default directories. * NEWS: Announce the change. * doc/make.texi (Summary of Options): Add documentation. * src/read.c (construct_include_path): Check for '-' and if found, clear the list of directories to be searched. * tests/scripts/options/dash-I: Add tests for -I-. * tests/scripts/variables/INCLUDE_DIRS: Add tests for -I-.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c45ef741..26a272e3 100644
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,10 @@ https://sv.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=109&se
user-defined function and they will not impact global variable assignments.
Implementation provided by Jouke Witteveen <j.witteveen@gmail.com>
+* The -I option accepts an argument "-" (e.g., "-I-") which means "reset the
+ list of search directories to empty". Among other things this can be used
+ to prevent GNU make from searching in its default list of directories.
+
* New debug option "print" will show the recipe to be run, even when silent
mode is set, and new debug option "why" will show why a target is rebuilt
(which prerequisites caused the target to be considered out of date).