diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-09-29 12:43:10 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-09-29 17:59:50 +0200 |
commit | a89c86888c41c922e5dc6a4c9cfb303a7bd3ab4f (patch) | |
tree | f049478b6ef955ed76b43828851ee2590c8899e2 /configure.ac | |
parent | f13c4f1562a99551920755f40a95084827920d2a (diff) | |
download | emacs-a89c86888c41c922e5dc6a4c9cfb303a7bd3ab4f.tar.gz |
Detect developer builds in git worktrees as well
* configure.ac (gcc-warnings): Don't require .git to be a directory.
If you wondered why you didn't get any warnings, this may have been
the reason.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 855c4ec7df1..f63eb870ffb 100644 --- a/configure.ac +++ b/configure.ac @@ -1664,7 +1664,7 @@ AC_ARG_ENABLE([gcc-warnings], # however, if there is also a .tarball-version file it is probably # just a release imported into Git for patch management. gl_gcc_warnings=no - if test -d "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version; then + if test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version; then # Clang typically identifies itself as GCC 4.2 or something similar # even if it is recent enough to accept the warnings we enable. AS_IF([test "$emacs_cv_clang" = yes], |