emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 13c8cc58bb: Enable warnings when building as a developer with


From: Po Lu
Subject: Re: master 13c8cc58bb: Enable warnings when building as a developer with
Date: Mon, 11 Apr 2022 11:28:41 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Richard Stallman <rms@gnu.org> writes:

> Is there a way to distinguish Clang from GCC by running shell commands?
> Autoconf could use that to provide a way to distinguish them.

Yes, in fact we already do that in Emacs:

  # clang is unduly picky about some things.
  AC_CACHE_CHECK([whether the compiler is clang], [emacs_cv_clang],
    [AC_COMPILE_IFELSE(
       [AC_LANG_PROGRAM([[
            #ifndef __clang__
              error "not clang";
            #endif
          ]])],
       [emacs_cv_clang=yes],
       [emacs_cv_clang=no])])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]