From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [WIP] Port feature/native-comp to Windows. Date: Sat, 09 May 2020 13:42:58 +0000 Message-ID: References: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43526"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: " emacs-devel@gnu.org" To: Nicolas Bertolo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 15:43:51 2020 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 1jXPle-000BC2-A1 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 15:43:50 +0200 Original-Received: from localhost ([::1]:55964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXPlc-0006CH-Sn for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 09:43:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXPkt-0005c6-PK for emacs-devel@gnu.org; Sat, 09 May 2020 09:43:03 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:63275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXPkr-00019J-Su for emacs-devel@gnu.org; Sat, 09 May 2020 09:43:03 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 049DgwTv017423 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sat, 9 May 2020 13:42:59 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 049Dgwvn006569; Sat, 9 May 2020 13:42:58 GMT In-Reply-To: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> (Nicolas Bertolo's message of "Fri, 8 May 2020 16:55:59 -0300") Received-SPF: pass client-ip=205.166.94.20; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/09 09:42:59 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:249431 Archived-At: Nicolas Bertolo writes: > Hello emacs-devel > >=20=20 > > I have ported the feature/native-comp branch to Windows. I have > tested my changes in Windows 10 x64 with Mingw64 GCC 10.0. Other > architectures or compilers should work, but it may be necessary to > adjust the code a little bit. Yes, I guess we'll certanly have a run of tests on all configurations that are now working. These are parts of code quite sensitive and I expect too some adjustment is likely to be required. > I would like to thank the author of this blogpost which was very > helpful for me: http://www.albertzhou.net/blog/2020/01/ > emacs-native-comp.html I get a 404 now but IIRC he had to hack libgccjit too. Did you had to modify that too or just works OOTB in Mingw64? > I have thought about a simple fix to this but I haven=E2=80=99t implement= ed > it yet. The Emacs process that needs to run in a Mingw64 environment > is actually the subprocess that performs the compilation, not the > main process that runs the editor. So my idea is to run this > subprocess through a small script that setups the environment that > libgccjit expects without polluting the Emacs environment. Mmmh the .eln do not link against any library so I guess if the shared libraries produced from the Mingw64 env are usable outside it should work (I'm totally ignorant on windows related subject). Very cool Andrea --=20 akrl@sdf.org