On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii <eliz@gnu.org> wrote:
 
I think the solution to that is to special-case ".emacs", in
maybe_swap_for_eln, as a file name that doesn't have to have the .el
extension for this purpose.

I've been fiddling with maybe_swap_for_eln for a while to try to special-case .emacs and make comp native-compile it, but I reached a point where it was getting a bit out of hand in the kludgey department.

I think that's better implemented by someone more knowledgeable with the native-compiler machinery.