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:
Henrik Lissner 2021-01-27 02:59:36 -05:00
parent 614dc93569
commit 47f222a61f

View file

@ -342,12 +342,13 @@ declaration) or dependency thereof that hasn't already been."
(or (eq build t)
(memq 'compile build)))
(want-native-compile
(and (or (eq build t)
(memq 'native-compile build))
(require 'comp nil t))))
(or (eq build t)
(memq 'native-compile build))))
(when (eq (car build) :not)
(setq want-byte-compile (not want-byte-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)
(or (file-newer-than-file-p repo-dir build-dir)
(file-exists-p (straight--modified-dir (or local-repo package)))