branch: elpa/emacsql commit 8e34660ba1f28aa86285f8dfce4cec27c8ba61b2 Author: leungbk <bkleun...@gmail.com> Commit: leungbk <bkleun...@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")))