Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1774333rwo; Sat, 22 Jul 2023 23:42:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8H9YQSRjY4gFh7NKtjqH+/WSgalmTpYow7+D6QRTFNMeiysU7QwyMIZlMbekvM/nFhlYx X-Received: by 2002:a17:906:8a67:b0:994:673:8b00 with SMTP id hy7-20020a1709068a6700b0099406738b00mr5810371ejc.12.1690094541665; Sat, 22 Jul 2023 23:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690094541; cv=none; d=google.com; s=arc-20160816; b=RDKXDYtmcxlukUX84/Xiz43iCHh6R2FgYoKLkV/QHP9xeAd+MNIdPQH2jcZKG3HN+U YgjqnNZeXSN/4DLgQKicWq3/dJ2OoiJPFVydXu6kCRSsmp1XbKMzvs5h2m5DRB3W/VzP UmCChFXD+q7N4B5QjTKck5OmgndG0wN/FsjctcaKuuctrCNZ23HZX1thuXx5b7mQ0Vvd 9kxVhfENfq5sKfHEsfPShkkYxys2mbQrN4Oe39tD26CDqpPT1/2Kv1KMiRSQ/vZuuhRb wpRJNXvdThERmu6w4UuTcIZndUMbWej4m/Gt7eDr660fo8Frr0XRmcTnjEHL9HcafUfx fsnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=C4VZeRlI8vsY2F4fLSCKIKamoVMjYNb+P38gnms8CKU=; fh=UlvJyj0MpQcl3k0GFNmiUUr8F/zA4A3O2PACufWTurE=; b=P+wDYcYtcchIQO8i1N9mZ8hPBTPReh6wPd2N9NUE/J+gTS7TGQW34tNsAW8c3ZVHCF 9jVdDWLnrtVoBNP1+ZCMuw+kt2Be2N9DkO0lrNaFOUOA1wV4LrxPvzM87Ndp/y1zQ4/n y7DsAakXFIfv00uMoViJkouRIfxEf+km9Ire29yOWLBK/yoloB2fUNvlwHML7D81pHsi 1xiYUY2kFbM9NrPRo480rtwDQ7LYogOO1itGqhs7oXg1xWYtmB7X3RH954gXTVjbMdp2 nWK5IGeMHN9Lddg6pR6HPKYUUOg4yZEyUBeOij6LLnY5Zb+8SwuczVm+ne7tU0aMyRWt KIgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MMiO041S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a1709061cca00b00992f30b2983si4340594ejh.849.2023.07.22.23.41.51; Sat, 22 Jul 2023 23:42:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MMiO041S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjGWFGj (ORCPT + 99 others); Sun, 23 Jul 2023 01:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGWFGg (ORCPT ); Sun, 23 Jul 2023 01:06:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B9110D7; Sat, 22 Jul 2023 22:06:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 472F260C1F; Sun, 23 Jul 2023 05:06:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0DDFC43391; Sun, 23 Jul 2023 05:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690088792; bh=RcmR2y8+8t1nMaDLo3EG2DyBfOGWDbEYicQEkeAfYL8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MMiO041S6v0e4pRkVWpsXAku5y8BstlIdJ9S9dDlSalUwoh60xSTIzlyPx9/dSRGi lA0A5RxT7oDHLZeii7tX7mHckcc8fP3Qte46jURM3H/AU4EJr/c6NyC0MpV23BWZ+p VcPIu+UM6QHBZvi70kJQktbFkV9ga1VvzjTHT3oFGlPv8k3vZHIemtHZQopFd+/hYw 3JM3FFM6oEyOzGEa09pQZKHxYio4MlDyC7bnYfWapPqYnK1GWYKR85gKAeZvbejbde ReisEv5A/5xIhZKls1cdXpRDKOl5IZIi+F+dCxwgI0w9yzxW5dnoGIW/LHeoCrIt88 2szKxw4G7cGJA== Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-56344354e2cso2077680eaf.1; Sat, 22 Jul 2023 22:06:32 -0700 (PDT) X-Gm-Message-State: ABy/qLZVykwVbtnukLSCrc+d5c/o6z0XtJSd67GREMcG30qe8y9m8cI0 KCSZsCxaUyqFdgMj5dKspUYTmnaDO0ziJhN0ukE= X-Received: by 2002:a4a:6f05:0:b0:566:f283:35ad with SMTP id h5-20020a4a6f05000000b00566f28335admr4448493ooc.8.1690088791870; Sat, 22 Jul 2023 22:06:31 -0700 (PDT) MIME-Version: 1.0 References: <20230718055235.1050223-1-ojeda@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Sun, 23 Jul 2023 14:05:55 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: rust: avoid creating temporary files To: Miguel Ojeda Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Raphael Nestler , Andrea Righi , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 23, 2023 at 12:52=E2=80=AFAM Miguel Ojeda wrote: > > On Thu, Jul 20, 2023 at 8:35=E2=80=AFPM Masahiro Yamada wrote: > > > > Maybe, the following was a breakage. > > > > commit 295d8398c67e314d99bb070f38883f83fe94a97a > > Author: Masahiro Yamada > > Date: Sat Jan 7 18:18:15 2023 +0900 > > > > kbuild: specify output names separately for each emission type from= rustc > > > > Before that, rust_common_cmd had --out-dir. > > That's right, good catch! > > > BTW, do we also need to fix scripts/Makefile.host > > in case the external module Makefile creates host programs? > > Indeed, we need it too. [1] would fix it (tested it with a trivial > out-of-tree Rust hostprog). > > Do you want me to send it separately? i.e. to avoid losing the > `Tested-by`s etc. that we already got for this one, which is the > important one since that actually has users. > > The hostprogs fix is not really critical for stable, since it is > unlikely there are users at all (we just got the first in-tree real > user in the Rust+KUnit integration coming into 6.6), but I guess it > does not hurt for the same reason. Can you send v2 with the following squashed? I think it makes sense to fix both if we add Fixes: 295d8398c67e ("kbuild: specify output names separately for each emission type from rustc") > Thanks! > > Cheers, > Miguel > > [1] > > diff --git a/scripts/Makefile.host b/scripts/Makefile.host > index 7aea9005e497..54adf2e2ec51 100644 > --- a/scripts/Makefile.host > +++ b/scripts/Makefile.host > @@ -86,7 +86,7 @@ hostc_flags =3D -Wp,-MMD,$(depfile) \ > hostcxx_flags =3D -Wp,-MMD,$(depfile) \ > $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \ > $(HOSTCXXFLAGS_$(target-stem).o) > -hostrust_flags =3D --emit=3Ddep-info=3D$(depfile) \ > +hostrust_flags =3D --out-dir $(dir $@) --emit=3Ddep-info=3D$(depfile) \ > $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \ > $(HOSTRUSTFLAGS_$(target-stem)) --=20 Best Regards Masahiro Yamada