From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yasuhiro Kimura Newsgroups: gmane.emacs.devel Subject: Question about native compilation Date: Thu, 10 Jun 2021 03:01:02 +0900 (JST) Message-ID: <20210610.030102.1585779767359400556.yasu@utahime.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15371"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 20:08:08 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 1lr2cZ-0003jt-98 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 20:08:07 +0200 Original-Received: from localhost ([::1]:35102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr2cX-0001BM-3j for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 14:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2ZB-00041t-5X for emacs-devel@gnu.org; Wed, 09 Jun 2021 14:04:37 -0400 Original-Received: from gate.home.utahime.org ([183.180.29.210]:36991 helo=maybe.home.utahime.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2Z9-0007JH-7P for emacs-devel@gnu.org; Wed, 09 Jun 2021 14:04:36 -0400 Original-Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id 5813FE37D for ; Thu, 10 Jun 2021 03:04:29 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1623261869; bh=/kLzdHdR6W2dffHBcHUritLz/r2yH4fDFXTti+vwc44=; h=Date:To:Subject:From; b=myXuAFwM4KUKJUnvb0C+oYHV9S1I64j2AS68v+GswPk5Y8+idX6eAOQJFnw7O3JGm Y6JO+ePAhJunAaUYALK+RICbpMbnRR9hSAGscoSygYe59HYWiKgj30lMU1M5GR2UTI /f0rj+bXbte0cMaEHcJ1xEZlo9VIQfV4gXzldwqhfXl8e+jFlPV/h8mm1PtVy1aF10 Od59EMtdTllyesGVtmTS4GVTuP2IOsBgD9saba2EBzbB+Tk/mt6CoiWe6Z1uCYX98h Hf3+NF6UT8o2qaMwVFnVRWIP4uxavlSPOrvo44NE3RH7a3V21Krgs7hH/qj8lttIy3 +i+YlBqcoOh/A== Original-Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 8E79F42CAE; Thu, 10 Jun 2021 03:04:28 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at eastasia.home.utahime.org X-Mailer: Mew version 6.8 on Emacs 27.2 Received-SPF: pass client-ip=183.180.29.210; envelope-from=yasu@utahime.org; helo=maybe.home.utahime.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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:270601 Archived-At: Hello, At first, thank you for implementing native compilation. It's very exciting. 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. ---------------------------------------------------------------------- NATIVE_COMPILE!= $(execute command to check if native compilation is supported) all: emacs -q -batch -f batch-byte-compile *.el .if ${NATIVE_COMPILE} == yes emacs -q -batch -f batch-native-compile *.el .endif install: install -m 644 -p *.el *.elc /usr/local/share/emacs/site-lisp .if ${NATIVE_COMPILE} == yes install -m 644 -p *.eln ${directory where 3rd party .eln files should be installed} .endif ---------------------------------------------------------------------- And I have 2 qestions about it. 1. What is the recommended way to check if executable of Emacs supports native compilation? 2. Is there standard place where 3rd party .eln files should be installed? I expect such directories as ${prefix}/share/emacs/site-lisp or ${prefix}/share/emacs/$(version)/site-lisp for .el and .elc files. Best Regards. --- Yasuhiro Kimura