Have default 'compile-command' run make in parallel
* lisp/progmodes/compile.el (compile-command): Change default value. (Bug#80065)
This commit is contained in:
parent
2d1d2a48d1
commit
bff916d7f9
1 changed files with 5 additions and 1 deletions
|
|
@ -954,7 +954,11 @@ The value nil as an element means to try the default directory."
|
|||
(string :tag "Directory"))))
|
||||
|
||||
;;;###autoload
|
||||
(defcustom compile-command "make -k "
|
||||
(defcustom compile-command
|
||||
;; Divide by less than 2 and round up to avoid using all processors on
|
||||
;; multi-core systems, but use at least one processor on a single-core
|
||||
;; system.
|
||||
(format "make -k -j%d " (ceiling (num-processors) 1.5))
|
||||
"Last shell command used to do a compilation; default for next compilation.
|
||||
|
||||
Sometimes it is useful for files to supply local values for this variable.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue