Skip to content

Commit

Permalink
Ask for CXX parameter for local compilation
Browse files Browse the repository at this point in the history
This allows compilation with Emacs from snapcraft.
See alexmurray/emacs-snap#92
  • Loading branch information
fapdash committed Aug 22, 2024
1 parent 32735a2 commit 9991e3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ I can’t test it but on windows you can get msys2 and
`mingw-w64-x86_64-xapian-core` and `make` should just work. Thanks to
pRot0ta1p for reporting this.

If you're using Emacs via snap you need to add these parameters:

```shell
make PREFIX=/snap/emacs/current CXX="/snap/emacs/current/usr/bin/g++-10 --sysroot /snap/emacs/current/"
```

# notdeft

I owe many thanks to the author of notdeft. I don’t really know C++ or
Expand Down
4 changes: 3 additions & 1 deletion xeft.el
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,11 @@ let xeft recreate it."
(locate-library "xeft.el" t)))
(prefix (concat "PREFIX="
(read-string "PREFIX (empty by default): ")))
(cxx (concat "CXX="
(read-string "CXX (empty by default): ")))
(buffer (get-buffer-create "*xeft compile*")))
(if (zerop (let ((inhibit-read-only t))
(call-process "make" nil buffer t prefix)))
(call-process "make" nil buffer t prefix cxx)))
(progn (message "Successfully compiled the module :-D") t)
(pop-to-buffer buffer)
(compilation-mode)
Expand Down

0 comments on commit 9991e3b

Please sign in to comment.