Function: projectile-compilation-command

projectile-compilation-command is a byte-compiled function defined in projectile.el.

Signature

(projectile-compilation-command COMPILE-DIR)

Documentation

Retrieve the compilation command for COMPILE-DIR.

The command is determined like this:

- first we check projectile-compilation-cmd-map for the last
compile command that was invoked on the project

- then we check for projectile-project-compilation-cmd supplied
via .dir-locals.el

- finally we check for the default compilation command for a
project of that type

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-compilation-command (compile-dir)
  "Retrieve the compilation command for COMPILE-DIR.

The command is determined like this:

- first we check `projectile-compilation-cmd-map' for the last
compile command that was invoked on the project

- then we check for `projectile-project-compilation-cmd' supplied
via .dir-locals.el

- finally we check for the default compilation command for a
project of that type"
  (or (gethash compile-dir projectile-compilation-cmd-map)
      projectile-project-compilation-cmd
      (projectile-default-compilation-command (projectile-project-type))))