Function: ert-gcc-is-clang-p

ert-gcc-is-clang-p is a byte-compiled function defined in ert-x.el.gz.

Signature

(ert-gcc-is-clang-p)

Documentation

Return non-nil if the gcc command actually runs the Clang compiler.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert-x.el.gz
(defun ert-gcc-is-clang-p ()
  "Return non-nil if the `gcc' command actually runs the Clang compiler."
  ;; Some macOS machines run llvm when you type gcc.  (!)
  ;; We can't even check if it's a symlink; it's a binary placed in
  ;; "/usr/bin/gcc".  So we need to check the output.
  (string-match "Apple \\(LLVM\\|[Cc]lang\\)\\|Xcode\\.app"
                (shell-command-to-string "gcc --version")))