Function: projectile-compile-project

projectile-compile-project is an autoloaded, interactive and byte-compiled function defined in projectile.el.

Signature

(projectile-compile-project ARG)

Documentation

Run project compilation command.

Normally you'll be prompted for a compilation command, unless variable compilation-read-command(var)/compilation-read-command(fun). You can force the prompt with a prefix ARG. Per project default command can be set through projectile-project-compilation-cmd.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
;;;###autoload
(defun projectile-compile-project (arg)
  "Run project compilation command.

Normally you'll be prompted for a compilation command, unless
variable `compilation-read-command'.  You can force the prompt
with a prefix ARG.  Per project default command can be set through
`projectile-project-compilation-cmd'."
  (interactive "P")
  (let ((command (projectile-compilation-command (projectile-compilation-dir)))
        (command-map (if (projectile--cache-project-commands-p) projectile-compilation-cmd-map)))
    (projectile--run-project-cmd command command-map
                                 :show-prompt arg
                                 :prompt-prefix "Compile command: "
                                 :save-buffers t
                                 :use-comint-mode projectile-compile-use-comint-mode)))