branch: elpa/emacsql commit 02acd07072811f07e0ad487ef0f5d950cbdd81fa Author: Christopher Wellons <well...@nullprogram.com> Commit: Christopher Wellons <well...@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