emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql ef10c33355 317/427: Only create the executable whe


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql ef10c33355 317/427: Only create the executable when compiling emacsql-sqlite
Date: Tue, 13 Dec 2022 02:59:55 -0500 (EST)

branch: elpa/emacsql
commit ef10c333558ae6a99bfc082b15360ad1234da39b
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]