-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alex Murray <murray.alex@gmail.com>
- Loading branch information
Showing
5 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: build-snap | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: snapcore/action-build@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el b/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el | ||
index e97832455b9..b04cfa00c33 100644 | ||
--- a/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el | ||
+++ b/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el | ||
@@ -188,7 +188,8 @@ and above." | ||
|
||
(defcustom native-comp-driver-options | ||
(cond ((eq system-type 'darwin) '("-Wl,-w")) | ||
- ((eq system-type 'cygwin) '("-Wl,-dynamicbase"))) | ||
+ ((eq system-type 'cygwin) '("-Wl,-dynamicbase")) | ||
+ ((getenv "SNAP") (list (concat "--sysroot=" (file-name-as-directory (getenv "SNAP"))) (concat "-B" (file-name-as-directory (getenv "SNAP")) "usr/lib/gcc/")))) | ||
"Options passed verbatim to the native compiler's back-end driver. | ||
Note that not all options are meaningful; typically only the options | ||
affecting the assembler and linker are likely to be useful. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/lisp/treesit.el b/lisp/treesit.el | ||
index e718ea1a23a..3a313c613ee 100644 | ||
--- a/lisp/treesit.el | ||
+++ b/lisp/treesit.el | ||
@@ -2932,11 +2932,11 @@ function signals an error." | ||
(default-directory (make-temp-file "treesit-workdir" t)) | ||
(workdir (expand-file-name "repo")) | ||
(source-dir (expand-file-name (or source-dir "src") workdir)) | ||
- (cc (or cc (seq-find #'executable-find '("cc" "gcc" "c99")) | ||
+ (cc (or cc (concat (file-name-as-directory (getenv "EMACS_SNAP_DIR")) "usr/bin/gcc-10") | ||
;; If no C compiler found, just use cc and let | ||
;; `call-process' signal the error. | ||
"cc")) | ||
- (c++ (or c++ (seq-find #'executable-find '("c++" "g++")) | ||
+ (c++ (or c++ (concat (file-name-as-directory (getenv "EMACS_SNAP_DIR")) "usr/bin/g++-10") | ||
"c++")) | ||
(soext (or (car dynamic-library-suffixes) | ||
(signal 'treesit-error '("Emacs cannot figure out the file extension for dynamic libraries for this system, because `dynamic-library-suffixes' is nil")))) |