branch: elpa/emacsql commit ef10c333558ae6a99bfc082b15360ad1234da39b Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Only create the executable when compiling emacsql-sqlite Without this evaluating any library which requires emacsql-sqlite would result in the executable to be regenerated. --- emacsql-sqlite.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el index 1f13486598..b9fd801060 100644 --- a/emacsql-sqlite.el +++ b/emacsql-sqlite.el @@ -223,7 +223,9 @@ This works like `url-copy-file' but actually checks for errors." (new-root (file-name-directory byte-compile-current-file)) (emacsql-sqlite-executable (expand-file-name bin-name (concat new-root "bin/")))) - (unless (file-exists-p emacsql-sqlite-executable) + (when (and (not (file-exists-p emacsql-sqlite-executable)) + (equal (file-name-nondirectory byte-compile-current-file) + "emacsql-sqlite.el")) (ignore-errors (emacsql-sqlite-compile 2))))) (provide 'emacsql-sqlite)