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

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

[nongnu] elpa/emacsql 02acd07072 328/427: Ensure executable variable is


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 02acd07072 328/427: Ensure executable variable is defined at compile time.
Date: Tue, 13 Dec 2022 02:59:57 -0500 (EST)

branch: elpa/emacsql
commit 02acd07072811f07e0ad487ef0f5d950cbdd81fa
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Ensure executable variable is defined at compile time.
---
 emacsql-sqlite.el | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index b9beb47750..73e1f803f4 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -45,13 +45,14 @@ version."
 
 ;;; SQLite connection
 
-(defvar emacsql-sqlite-executable
-  (expand-file-name (format "bin/emacsql-sqlite-%s%s" (emacsql-system-tuple)
-                            (if (memq system-type '(windows-nt cygwin ms-dos))
-                                ".exe"
-                              ""))
-                    emacsql-data-root)
-  "Path to the EmacSQL backend (this is not the sqlite3 shell).")
+(cl-eval-when (load compile)
+  (defvar emacsql-sqlite-executable
+    (expand-file-name (format "bin/emacsql-sqlite-%s%s" (emacsql-system-tuple)
+                              (if (memq system-type '(windows-nt cygwin 
ms-dos))
+                                  ".exe"
+                                ""))
+                      emacsql-data-root)
+    "Path to the EmacSQL backend (this is not the sqlite3 shell)."))
 
 (defvar emacsql-sqlite-reserved
   (emacsql-register-reserved



reply via email to

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