From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree Date: Wed, 03 Mar 2021 19:50:05 +0000 Message-ID: References: <865z3866my.fsf@gmail.com> <865z38a9vo.fsf@gmail.com> <86eehujcip.fsf@gmail.com> <86blch14qt.fsf@gmail.com> <83h7m84h9g.fsf@gnu.org> <86v9ao5czu.fsf@gmail.com> <86wnutogrh.fsf@gmail.com> <86wnut8fb9.fsf@gmail.com> <861rd1tbpa.fsf@gmail.com> <83pn0km6y3.fsf@gnu.org> <86ft1f8ara.fsf@gmail.com> <83sg5cjdn8.fsf@gnu.org> <83pn0gjco8.fsf@gnu.org> <83lfb4jato.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40715"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46256@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 20:51:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHXWd-000ATf-Cj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 20:51:15 +0100 Original-Received: from localhost ([::1]:56520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHXWc-0007tr-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 14:51:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHXWR-0007qk-TI for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:51:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHXWQ-0001it-Hd for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHXWQ-0003ZI-GT for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46256 X-GNU-PR-Package: emacs Original-Received: via spool by 46256-submit@debbugs.gnu.org id=B46256.161480100813653 (code B ref 46256); Wed, 03 Mar 2021 19:51:02 +0000 Original-Received: (at 46256) by debbugs.gnu.org; 3 Mar 2021 19:50:08 +0000 Original-Received: from localhost ([127.0.0.1]:57056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXVY-0003Y8-Eh for submit@debbugs.gnu.org; Wed, 03 Mar 2021 14:50:08 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:50693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXVX-0003Xx-GQ for 46256@debbugs.gnu.org; Wed, 03 Mar 2021 14:50:08 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 123Jo5GS020968 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 3 Mar 2021 19:50:06 GMT In-Reply-To: <83lfb4jato.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 03 Mar 2021 21:28:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201316 Archived-At: Eli Zaretskii writes: > I have a question: how do I determine which Emacs binary corresponds > to a particular directory in ~/.emacs.d/eln-cache/ ? > > AFAIU, when I make a change in Emacs C sources and rebuild Emacs, the > netive-compiled files will be put in a new directory under eln-cache, > right? Essentially only if you add a primitive function. > Suppose I later would later like to remove stale binaries -- > how do I know which eln-cache subdirectories I can remove at that > time? ATM I tipically just remove all but the least recent one. But another smarter technique might be looking at the subfolder name in the build tree you are interested in inside the 'native-lisp' directory, this is the same subfolder name that's used inside 'eln-cache'. Thinking about from Emacs one can find it simply inspecting the `comp-abi-hash' variable. Thanks Andrea