From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Question about native compilation Date: Wed, 09 Jun 2021 14:17:35 -0400 Message-ID: References: <20210610.030102.1585779767359400556.yasu@utahime.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28716"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Yasuhiro Kimura Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 20:18:58 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lr2n3-0007DW-SO for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 20:18:58 +0200 Original-Received: from localhost ([::1]:45884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr2n2-0000Mz-T3 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 14:18:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2lv-0007Px-OX for emacs-devel@gnu.org; Wed, 09 Jun 2021 14:17:47 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2lt-0007NS-01 for emacs-devel@gnu.org; Wed, 09 Jun 2021 14:17:46 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D323B100216; Wed, 9 Jun 2021 14:17:41 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 51BF0100040; Wed, 9 Jun 2021 14:17:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1623262656; bh=OvqO7Dq3wh31SUCQOUNWmY6QBROa9E8zxsuaUfvKq9E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IEpPoJ76cg145iYbTaoHff+DVpgqxSKhwD6FbAm7RV3V3DLHzQCBi4BVZtguWiX4c pkGR85RYW7ureyIub4IzSVC9XewKHdunpTnuZj1eSd5VjMWObFdhGxGP0oq2S7F0TJ 1FWsTWgtIqH7ShzhuVyZDAw2M9Ah3TvZs1ho3C9ylP69MHm5cJ5r8kJYFVf4zx0SOF 3PQrAmzi4rBpi2FGI0PtpCreMGyIVDhTsNtgb9kLWJBuxbYsJkWeC0vg1d8h0fotHr dfoDcvBU3UnZbbOnxnLP/G/FfwHaGzR34pZ/ZAJRlx4kz74Z/U3xduHGrA7G6H4Mot YcNz4U2BeNr/w== Original-Received: from alfajor (69-196-163-239.dsl.teksavvy.com [69.196.163.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2689C12023C; Wed, 9 Jun 2021 14:17:36 -0400 (EDT) In-Reply-To: <20210610.030102.1585779767359400556.yasu@utahime.org> (Yasuhiro Kimura's message of "Thu, 10 Jun 2021 03:01:02 +0900 (JST)") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270602 Archived-At: > Currently I'm trying to change some 3rd party emacs lisp programs so > they build and install .eln files if Emacs executable supports native > compilation. For example I would like to write Makefile such as > following. I'll let someone else answer your immediate question, but I do want to point out that generating the `.eln` files as part of installation of the package is a bad idea: the `.eln` files are not just specific to the package but also to the Emacs for which it was compiled, so next time you use another version of Emacs, they'll have to be recompiled anyway. For this reason, the way native compilation is currently arranged, it automatically native-compiles the files on-demand, and pre-compiling them during installation of a package is more trouble than it's worth, IMO. Stefan