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

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

[nongnu] elpa/emacsql 8e34660ba1 370/427: Allow `gcc` as a separate opti


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 8e34660ba1 370/427: Allow `gcc` as a separate option for C compilation.
Date: Tue, 13 Dec 2022 03:00:11 -0500 (EST)

branch: elpa/emacsql
commit 8e34660ba1f28aa86285f8dfce4cec27c8ba61b2
Author: leungbk <bkleung89@gmail.com>
Commit: leungbk <bkleung89@gmail.com>

    Allow `gcc` as a separate option for C compilation.
    
    On GNU GuixSD, installing `gcc-toolchain` gives the user's PATH `gcc`,
    but does not make the symbolic link `cc` as in other distros.
---
 emacsql-sqlite.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 64f597bf5b..8bf3a43b4e 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -140,7 +140,7 @@ buffer. This is for debugging purposes."
 (defun emacsql-sqlite-compile (&optional o-level async)
   "Compile the SQLite back-end for EmacSQL, returning non-nil on success.
 If called with non-nil ASYNC the return value is meaningless."
-  (let* ((cc (executable-find "cc"))
+  (let* ((cc (or (executable-find "cc") (executable-find "gcc")))
          (src (expand-file-name "sqlite" emacsql-sqlite-data-root))
          (files (mapcar (lambda (f) (expand-file-name f src))
                         '("sqlite3.c" "emacsql.c")))



reply via email to

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