Fix #4947: naive native-comp checks
Now, checking for the comp package is no longer sufficient to determine if native-compilation is enabled.
This commit is contained in:
parent
ccf6f0b53d
commit
43623d7c5e
1 changed files with 3 additions and 1 deletions
|
@ -315,7 +315,9 @@ declaration) or dependency thereof that hasn't already been."
|
|||
(when (eq (car-safe build) :not)
|
||||
(setq want-byte-compile (not want-byte-compile)
|
||||
want-native-compile (not want-native-compile)))
|
||||
(unless (require 'comp nil t)
|
||||
(unless (and (require 'comp nil t)
|
||||
(featurep 'nativecomp)
|
||||
(ignore-errors (native-comp-available-p)))
|
||||
(setq want-native-compile nil))
|
||||
(and (or want-byte-compile want-native-compile)
|
||||
(or (file-newer-than-file-p repo-dir build-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue