mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
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:
@@ -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)))
|
||||||
|
Reference in New Issue
Block a user