[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 016f2bf05a 330/427: Give up compiling at compile t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 016f2bf05a 330/427: Give up compiling at compile time. |
Date: |
Tue, 13 Dec 2022 02:59:58 -0500 (EST) |
branch: elpa/emacsql
commit 016f2bf05a43a340470d4470f5c12c7f1531ef85
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Give up compiling at compile time.
How did this ever work in the first place ...?
---
emacsql-sqlite.el | 39 +++++++++++++++++----------------------
1 file changed, 17 insertions(+), 22 deletions(-)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index fae07dd136..40e484412e 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -45,19 +45,17 @@ version."
;;; SQLite connection
-(cl-eval-when (load compile)
- (defvar emacsql-sqlite-data-root
- (file-name-directory (or load-file-name buffer-file-name))
- "Directory where EmacSQL is installed."))
-
-(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-sqlite-data-root)
- "Path to the EmacSQL backend (this is not the sqlite3 shell)."))
+(defvar emacsql-sqlite-data-root
+ (file-name-directory (or load-file-name buffer-file-name))
+ "Directory where EmacSQL is installed.")
+
+(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-sqlite-data-root)
+ "Path to the EmacSQL backend (this is not the sqlite3 shell).")
(defvar emacsql-sqlite-reserved
(emacsql-register-reserved
@@ -244,15 +242,12 @@ This works like `url-copy-file' but actually checks for
errors."
(unless (emacsql-sqlite-fetch-binary)
(error "No EmacSQL SQLite binary available, aborting")))))
-(cl-eval-when (compile)
- (let* ((bin-name (file-name-nondirectory emacsql-sqlite-executable))
- (new-root (file-name-directory byte-compile-current-file))
- (emacsql-sqlite-executable
- (expand-file-name bin-name (concat new-root "bin/"))))
- (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)))))
+(let* ((bin-name (file-name-nondirectory emacsql-sqlite-executable))
+ (emacsql-sqlite-executable
+ (expand-file-name bin-name
+ (expand-file-name "bin" emacsql-sqlite-data-root))))
+ (unless (file-exists-p emacsql-sqlite-executable)
+ (ignore-errors (emacsql-sqlite-compile 2))))
(provide 'emacsql-sqlite)
- [nongnu] elpa/emacsql b6a0336d62 405/427: make: Compile SQLite binary before Elisp, (continued)
- [nongnu] elpa/emacsql b6a0336d62 405/427: make: Compile SQLite binary before Elisp, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b9d848fa9c 407/427: make: Don't warn about implicit fallthroughs, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dbf0598731 087/427: Add "-interactive" argument (fixes #1)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 79fb8cb223 230/427: Heavy compiler rework., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dcb9a903c7 284/427: Put emacsql-thread inside a transaction., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4a570e3016 301/427: Predict new location when compiling binary., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 57fa0e1d3e 306/427: Use just BEGIN for transactions., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ef10c33355 317/427: Only create the executable when compiling emacsql-sqlite, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a270218fd9 324/427: Ignore generated var/ directory, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f00f724495 325/427: Enforce use of spaces for indentation, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 016f2bf05a 330/427: Give up compiling at compile time.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 59147c4cdf 373/427: Update README paragraph about automatic downloads (#46), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 936ac5bc86 386/427: Define emacsql using cl-defgeneric, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e597696682 358/427: Fix some indentation (whitespace cleanup), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 76489e0a10 362/427: Tweak Makefile documentation, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 8c5f095458 368/427: Bump to version 3.0.0 (#20), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 49348329df 376/427: Document op. precedence handling, clean up format string expansion, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 50ae54d159 053/427: Use expressions in select columns., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a13eba5f05 059/427: Use the timeout argument in emacsql-wait., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d440b44778 076/427: Add escape vector test., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1db49d7f4c 090/427: Add Windows notice again., ELPA Syncer, 2022/12/13