Fix packages evading native-compilation
(featurep 'nativecomp) will never return t.
This commit is contained in:
parent
4b5cf7d46f
commit
13f316e645
1 changed files with 6 additions and 7 deletions
|
@ -332,11 +332,10 @@ declaration) or dependency thereof that hasn't already been."
|
|||
(want-native-compile
|
||||
(or (eq build t)
|
||||
(memq 'native-compile build))))
|
||||
(when (eq (car-safe build) :not)
|
||||
(and (eq (car-safe build) :not)
|
||||
(setq want-byte-compile (not want-byte-compile)
|
||||
want-native-compile (not want-native-compile)))
|
||||
(unless (and (require 'comp nil t)
|
||||
(featurep 'nativecomp)
|
||||
(or (and (require 'comp nil t)
|
||||
(ignore-errors (native-comp-available-p)))
|
||||
(setq want-native-compile nil))
|
||||
(and (or want-byte-compile want-native-compile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue