unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Requirements for native-compile support
@ 2021-05-08  8:30 Eli Zaretskii
  2021-05-10  7:40 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-05-08  8:30 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: emacs-devel

Andrea,

Do we need libgccjit only for compiling to *.eln, or do we also need
it for loading and executing the *.eln files?

IOW, if Emacs was built with libgccjit, but the library isn't
available at run time, will Emacs still be able to load and run *.eln
files that were produced elsewhere (assuming the native code is
compatible with the platform where it will be run)?

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Requirements for native-compile support
  2021-05-08  8:30 Requirements for native-compile support Eli Zaretskii
@ 2021-05-10  7:40 ` Andrea Corallo via Emacs development discussions.
  2021-05-10 13:35   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2021-05-10  7:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Andrea,
>
> Do we need libgccjit only for compiling to *.eln, or do we also need
> it for loading and executing the *.eln files?
>
> IOW, if Emacs was built with libgccjit, but the library isn't
> available at run time, will Emacs still be able to load and run *.eln
> files that were produced elsewhere (assuming the native code is
> compatible with the platform where it will be run)?

We don't use libgccjit for loading elns file but we still have libgccjit
as a dependency because ATM Emacs may need to compile a trampoline if a
primitive is redefined or advised.  If it's important to support native
builds with no libgccjit available we should redesign this specific
mechanism.

Regards

  Andrea



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Requirements for native-compile support
  2021-05-10  7:40 ` Andrea Corallo via Emacs development discussions.
@ 2021-05-10 13:35   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2021-05-10 13:35 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: emacs-devel

> From: Andrea Corallo <akrl@sdf.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 10 May 2021 07:40:35 +0000
> 
> We don't use libgccjit for loading elns file but we still have libgccjit
> as a dependency because ATM Emacs may need to compile a trampoline if a
> primitive is redefined or advised.  If it's important to support native
> builds with no libgccjit available we should redesign this specific
> mechanism.

I don't have any evidence that we need to support such builds, I guess
we will hear from downstream distro maintainers if they are needed.

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-10 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08  8:30 Requirements for native-compile support Eli Zaretskii
2021-05-10  7:40 ` Andrea Corallo via Emacs development discussions.
2021-05-10 13:35   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).