Skip to content

Commit

Permalink
fix: Load Emacs libraries needed for native compilation
Browse files Browse the repository at this point in the history
This fixes the following error which now appears in the latest Git version of
Emacs:

> Symbol's function definition is void: emacs-lisp-compilation-mode
  • Loading branch information
akirak committed Nov 11, 2023
1 parent c9b24e0 commit 8893b1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/emacs/build/comp-native.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
;; Based on code from https://www.emacswiki.org/emacs/GccEmacs#h5o-14

(defun run-native-compile-sync ()
(require 'bytecomp)
(require 'comp)
(native-compile-async (or (pop command-line-args-left)
(error "Specify a source directory as the argument"))
nil nil
Expand Down

0 comments on commit 8893b1a

Please sign in to comment.