GNU bug report logs - #50666
28.0.50; Fix native compilation on Cygwin

Previous Next

Package: emacs;

Reported by: Ken Brown <kbrown <at> cornell.edu>

Date: Sat, 18 Sep 2021 20:52:02 UTC

Severity: normal

Tags: patch

Found in version 28.0.50

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ken Brown <kbrown <at> cornell.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Stromeko <at> nexgo.de, 50666 <at> debbugs.gnu.org
Subject: bug#50666: 28.0.50; Fix native compilation on Cygwin
Date: Wed, 22 Sep 2021 17:35:28 -0400
On 9/19/2021 1:12 PM, Eli Zaretskii wrote:
>> Cc: Stromeko <at> nexgo.de, 50666 <at> debbugs.gnu.org
>> From: Ken Brown <kbrown <at> cornell.edu>
>> Date: Sun, 19 Sep 2021 12:17:51 -0400
>>
>>>> In the meantime, is it OK if I install my patch to enable building with native
>>>> compilation?  That would simplify experimentation.
>>>
>>> Yes, it's okay to install that, but it's a band-aid at best, and we'd
>>> like to have the complete solution in Emacs before we release v28.1.
>>> Is that feasible?
>>
>> Yes, I think so.
> 
> Great, let's hopw you will succeed.

We've made a good start on the Cygwin side, but I have a question about how to 
integrate it into Emacs.

Let's say we have a script that I'll call "rebase" for the purpose of this 
discussion, which rebases all the eln files in ~/.emacs.d/eln-cache.  The user 
would then start Emacs via a script that first calls rebase and then starts 
Emacs.  Within Emacs, I would then want to do something like

(if (eq system-type 'cygwin)
    (call-process "rebase" nil
                  '(:file "<log file>")
                  nil "<arg>" ...))

after every compilation but before the compiled file is loaded.

I'm not familiar enough with native compilation to know where this should go. 
Or maybe it has to be done in more than one place, depending on whether the 
compilation is synchronous or not.

Can you help?

Thanks.

Ken

P.S. The rebase script will fail to rebase eln files that are already loaded, 
but that's harmless in the scenario above.




This bug report was last modified 3 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.