Fix #4558: void-variable comp-native-version-dir
Occurs for non-gccemacs users due to aggressive negation if (car build) == :not
This commit is contained in:
parent
614dc93569
commit
47f222a61f
1 changed files with 4 additions and 3 deletions
|
@ -342,12 +342,13 @@ declaration) or dependency thereof that hasn't already been."
|
||||||
(or (eq build t)
|
(or (eq build t)
|
||||||
(memq 'compile build)))
|
(memq 'compile build)))
|
||||||
(want-native-compile
|
(want-native-compile
|
||||||
(and (or (eq build t)
|
(or (eq build t)
|
||||||
(memq 'native-compile build))
|
(memq 'native-compile build))))
|
||||||
(require 'comp nil t))))
|
|
||||||
(when (eq (car build) :not)
|
(when (eq (car build) :not)
|
||||||
(setq want-byte-compile (not want-byte-compile)
|
(setq want-byte-compile (not want-byte-compile)
|
||||||
want-native-compile (not want-native-compile)))
|
want-native-compile (not want-native-compile)))
|
||||||
|
(unless (require 'comp nil t)
|
||||||
|
(setq want-native-compile nil))
|
||||||
(and (or want-byte-compile want-native-compile)
|
(and (or want-byte-compile want-native-compile)
|
||||||
(or (file-newer-than-file-p repo-dir build-dir)
|
(or (file-newer-than-file-p repo-dir build-dir)
|
||||||
(file-exists-p (straight--modified-dir (or local-repo package)))
|
(file-exists-p (straight--modified-dir (or local-repo package)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue