Variable: compilation-search-all-directories
compilation-search-all-directories is a customizable variable defined
in compile.el.gz.
Value
t
Documentation
Whether further upward directories should be used when searching a file.
When doing a parallel build, several files from different directories can be compiled at the same time. This makes it difficult to determine the base directory for a relative file name in a compiler error or warning. If this variable is non-nil, instead of just relying on the previous directory change in the compilation buffer, all other directories further upwards will be used as well.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-search-all-directories t
"Whether further upward directories should be used when searching a file.
When doing a parallel build, several files from different
directories can be compiled at the same time. This makes it
difficult to determine the base directory for a relative file
name in a compiler error or warning. If this variable is
non-nil, instead of just relying on the previous directory change
in the compilation buffer, all other directories further upwards
will be used as well."
:type 'boolean
:version "28.1")