From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Nicolas_B=C3=A9rtolo?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [WIP] Port feature/native-comp to Windows. Date: Sun, 10 May 2020 15:05:05 -0300 Message-ID: References: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> <83lfm1hc91.fsf@gnu.org> <83wo5lds87.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="4822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 10 20:06:13 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 1jXqL6-0001AM-0t for ged-emacs-devel@m.gmane-mx.org; Sun, 10 May 2020 20:06:12 +0200 Original-Received: from localhost ([::1]:35108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXqL4-0001wH-HO for ged-emacs-devel@m.gmane-mx.org; Sun, 10 May 2020 14:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXqKF-0000ii-MM for emacs-devel@gnu.org; Sun, 10 May 2020 14:05:19 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:38689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXqKE-0002pP-W4; Sun, 10 May 2020 14:05:19 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id r66so13210743oie.5; Sun, 10 May 2020 11:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ujV+9wuhtzQ4+fh99GvZiYm4OHbDDeB1kVsumFPty4s=; b=dRf10CBIHPh/yRWE3yEiABvhE90BN2xnPASsgSSrN0U8EMtg7wCbHh0/Kz01W+OzAE RgxWbPjJv3OlZdyh113hkB+gcSprIFTUEYUNUkV28cHY9e+kO6/IF2zPSJgP8Uw497kj p7c/+eDCWrwY/RbM6U3qsY+xmMtzl7LaqhYqVtDi3Eq6fewicEF6ZDMk1F4CLOGlwHGR OygnP9vn0aI1oeX9CJIdvbLeMFMe5ADbKDxFgfSDDgqk8ROvqTpZMm3jXBDXm0nO+/WQ xar08QrhrpEMii+bTdpzE2XZmj13cwAp8X99Lr7psVvsOAF5+5A/laETSwmbnzFP8DGb +JDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ujV+9wuhtzQ4+fh99GvZiYm4OHbDDeB1kVsumFPty4s=; b=uM4ZEjgV4XN7tnyKPbPUCA1BQ3GcL+kAMlrHftsRBKhOvuvYy1XH7p2tRb2E+7ipIn 5vm6/4ehcsuUExrLiy9oDwUxlyXByC18S2g3kXSzxZpobzwexs3f7fZ7LDUh3RBBQPGp M9Dr+4l9/pwMJdq1EKBby+JIJ5/bFO53OI4+z1s7JwACY50wJPg2Ej99HcA/st48G2W1 meIH6mOEhsmaoHXP291N58PYaAWzzyl09FXzFf3LtSyY6WJtFfgcEH+uJKZG4LdwxLEA YCghAL2s68glvI+ENvc657bbFh1AplXTGty3eiRv7ja0vGs5Lru7whwqmlYPxyg8HpwS MvDA== X-Gm-Message-State: AGi0PuZsBCz1jVVOt+CKQeS3wLkBFiRPTVUFDRO/sP51iTHnbIjfD1El GmSh/pdZEvzettgO4vKaZ6EKIi3dRcujcoRNsGo= X-Google-Smtp-Source: APiQypKFseoHJe6qYr8oA1KYiBxuvHA18lLfQZ00P++pivlF2Db3c0113zbOVro7D4jWfWqvhNj1gfSM1p7+mJCrQeo= X-Received: by 2002:aca:c68b:: with SMTP id w133mr17559287oif.175.1589133917062; Sun, 10 May 2020 11:05:17 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=nicolasbertolo@gmail.com; helo=mail-oi1-x22a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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:249689 Archived-At: > It should be possible to use recent entry points but only with a > fallback. This unless we see there's really no other option and we > accept the trade off. We can fallback to the full set of default libs if we can not use the "-nodefaultlibs" and "-l" options. But the key part of the patch is to set the "-B" flag. It does not seem like we can use gcc_jit_context_add_command_line_option instead of gcc_jit_context_add_driver_option to pass "-B". This means that we would need to use setenv() to define GCC_EXEC_PREFIX before calling libgccjit, right? > For the rest I do not have Windows knowledge so to form an opinion I'd > need to understand a little more how it works. In case you have some > reference to recommend please feel free to suggest. Regarding the CRT part this is what I read to understand why I needed to add so many libraries: https://support.microsoft.com/en-us/help/94248/how-to-use-the-c-run-time Nicolas