Replies: 2 comments 2 replies
-
I can reproduce this issue. The workaround also works for me (when (native-comp-available-p)
(setq borg-compile-function
(defun cl/my-compile (filename)
(and (byte-compile-file filename)
(native-compile filename))))) And the issue on building packages with |
Beta Was this translation helpful? Give feedback.
-
I don't think I advertised it. I always said you use it at your own risk. I only added support because people insisted it was a good idea and it looked like it more or less would just worked (but now I think it never really worked). But I guess now I am on the hook and have to implement it properly. See the
|
Beta Was this translation helpful? Give feedback.
-
Hello! I just bootstrapped from the emacs.g seed, and updated borg drone to the latest, cd1fbd6. When I run
make
, it will generate the.elc
files in all thelib/DRONE
locations, and when they are first loaded emacs 28.1 will native-compile them. But I'd like to do the native-compile ahead of time.I tried this setting in
etc/borg/config.el
, as suggested in the borg manual:With that,
make
says it's (re-)building everything (and maybe it is?), but afterward, there are no more.elc
files in thelib/DRONE
locations. I think that when the.elc
is missing, Emacs doesn't bother to load the native.eln
either!When I restart emacs, I try these to verify – loading one function provided with emacs and one from a drone:
The epkg function is not reported as compiled at all, even byte-compiled.
One hacky way I've found to resolve this is to set
borg-compile-function
so it explicitly does both:Now after a
make
the.elc
files stick around, and the native files seem to be ready ahead of time and load properly:So maybe this is a documentation bug about that
config.el
setting, or borg itself needs to ensure the.elc
is also created when it'snative-compile
, or maybe there's something strange about my setup (or my interpretation of it)? Thanks!Beta Was this translation helpful? Give feedback.
All reactions