From f84c36ea92eb5601edacd245c7c74f3a6048ce2c Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sun, 12 Nov 2023 02:18:32 +0900 Subject: [PATCH] fix: Load Emacs libraries needed for native compilation This aims to resolve the following error: > Symbol's function definition is void: emacs-lisp-compilation-mode --- pkgs/emacs/build/comp-native.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/emacs/build/comp-native.el b/pkgs/emacs/build/comp-native.el index 07d746f..a007dc9 100644 --- a/pkgs/emacs/build/comp-native.el +++ b/pkgs/emacs/build/comp-native.el @@ -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