From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Native compiler - passing command line options to C compiler Date: Mon, 30 Aug 2021 16:28:18 +0300 Message-ID: <83v93njc3x.fsf@gnu.org> References: <83bl5fkvky.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2625"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 15:29:25 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 1mKhLp-0000U5-29 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 15:29:25 +0200 Original-Received: from localhost ([::1]:43554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKhLn-0005Ed-1I for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 09:29:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKhKw-00044w-5V for emacs-devel@gnu.org; Mon, 30 Aug 2021 09:28:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKhKv-0001a3-KD; Mon, 30 Aug 2021 09:28:29 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1695 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKhKv-0003VD-6U; Mon, 30 Aug 2021 09:28:29 -0400 In-Reply-To: (message from Andrea Corallo on Mon, 30 Aug 2021 12:59:45 +0000) 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:273492 Archived-At: > From: Andrea Corallo > Cc: Arthur Miller , emacs-devel@gnu.org > Date: Mon, 30 Aug 2021 12:59:45 +0000 > > I think this "defined (WINDOWSNT)" should be there so that compiling on > Windows the check over "gcc_jit_context_add_command_line_option" it is > always compiled even in case the libgccjit.h provided at compile time > does not define > 'LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option'. > > A newer version of the shared library including the entry point might be > provided later on and will be used at runtime. You cannot use a libgccjit.dll of a version for which Emacs was not compiled, unless it is binary-compatible. If Emacs was linked against libgccjit.dll that didn't support gcc_jit_context_add_command_line_option, then it would not work to install a newer version of the DLL that does.