Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6614713rdb; Fri, 15 Dec 2023 03:56:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvToAIwa8jTTkGzxisE9Qq3QDdIA+Pc0+FW7K47siUdodZxvTglG1zvCOluUL56z2WMQH6 X-Received: by 2002:a05:6830:2643:b0:6da:46fb:76c with SMTP id f3-20020a056830264300b006da46fb076cmr2512766otu.8.1702641368188; Fri, 15 Dec 2023 03:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702641368; cv=none; d=google.com; s=arc-20160816; b=XU/tHqaCI3luD6qdnlKVhm4qsLRlUhPBVzbC9jp6aiENtj8fKJgyRYoaEgrDHaJwCR 3UWCdzHVr32rV3q1j/AyhanIEU4yqi1v9quKJJwLIULgJH9BqTO/yhAiw/pgV7W4nOVM /9bHEYzODCBUZ5PI/ZFgEouWUe7g+ob+ysJRkLThj2RC4a6uatquEIsaS0GaxEusJyXX vHRuVgVlBx7h/vpcvvANNGlo/VkAtZCLS9448ovTl6IrypvnVc1ebdZEyRxK0peGuO0M jHUVqv3MveXLQWPkDV5L6Wg9NAgJjBAC2Br8LtKXgC7CM9oS3NvmkhAbd7/Dm4dEW1T8 DyZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=YM1v7r2f2GvXAiAcJRLKSdfcTUYdD255h3ff0PoBXFQ=; fh=SA26lznRth/XdpKVtaKofmOgU9sZkGjmfbVMNTBVDzg=; b=zvHb06KkvDvgnQjAgTjYTReAySPqmt/T3Lr3uSWFw6u9YZscwH+S2tywQWWkLI6Ic4 bVTDhmzcgUweM+QOZ0xLECOoFkYW4SpwbZVugELyzvdohUyvNVyz5hkxRmzrTBVurZtU g/p/C0o5Y4ViSXml1YlWUWoiUuz0/h68Nt6zXDUF+ZjP441BJJ413QNhZh/EIVrE9jha BOWSwxfEq+qgMBjJfknKt6tpY/xWk9jzWh9Fv381NY7ERxQ/LqE1W7Qx8RoAJqVAh0bg 1Khyh1xmBL6EopLcgql02p+JR9iyl0c1ri/252khJMKBEOia1thL51VR3dgEFTKSU0AQ fMIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HvFMHUVc; spf=pass (google.com: domain of linux-kernel+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t11-20020a056a0021cb00b006cef51e9ea9si10623317pfj.218.2023.12.15.03.56.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 03:56:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HvFMHUVc; spf=pass (google.com: domain of linux-kernel+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6B603B22089 for ; Fri, 15 Dec 2023 11:55:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBC872D616; Fri, 15 Dec 2023 11:53:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HvFMHUVc" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BCC52C86C; Fri, 15 Dec 2023 11:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dbce6056e85so459994276.3; Fri, 15 Dec 2023 03:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702641223; x=1703246023; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YM1v7r2f2GvXAiAcJRLKSdfcTUYdD255h3ff0PoBXFQ=; b=HvFMHUVcrTt4r+s3Evj5z0qmwuJVHqgfEAi9Z/V+pMFQy6JL+HXM/tFis29+rwEWCc JnLp26o5DMy7Tw0eq/3Cy8WiaA/XDiCVrOG83pAf6ILAjGMlArSak/cZUvj0rs+slL1j Vpl9uCgXuXjgjytkv7TDolDX42Oc2JMN1f7/7ItbdcIrN29BKcgh9+pvda+87r0xDhRH +3ntH6LkTUIfmld1EsQjomhV54yiNm77IQZb1a/n5Fxi+XVPFfVMgwthWAID2B7OYkTN moSg8GSSVdV1ZkxAuR5LoZCV6y4BfuYe3bzE0+0klCMc28XM4eQqwG/NL4Ho8VTDyFXO FFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702641223; x=1703246023; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YM1v7r2f2GvXAiAcJRLKSdfcTUYdD255h3ff0PoBXFQ=; b=EY5PRFbNBcWf4AfrxXyDaO69Y5bVTh1TUX2AXvqHJ77UYcUC6L+oH3rLK9CC54lBa1 mLlI+gGwK+fPOyt8ivBrWR2OKVL/BoSZwHVzILISrkaShnZK48z+rT1LIzG3GZXjrjai TK1e3Lp362vWK5IzVCvD7iCWmPZmwmQPd2+da2iCFWtraEViUMfYPrVi5Iry4ylZybnk vZaZJWZ8ksaolaXwZkLgB4bZgDUma6fRV4MM7FKYjwMZvtvOPFMPcEU6wQUYxdWSEDvK RQuMLMtUl4u8TYLEEAxAXHaSXdCIqLclqaDRg8LbGblSa4o+kRRurV4foaDUOpmJhjo3 QUDQ== X-Gm-Message-State: AOJu0Yw/dzi8d4y+hx507Cm3F33y8p7N9b068aEgh5WSwqn+0XBdzYJ1 Jn0ik51PLFpYDEcffq8CaJT9LES4QbP4H+jY3pI= X-Received: by 2002:a25:bf85:0:b0:db7:dacf:59f2 with SMTP id l5-20020a25bf85000000b00db7dacf59f2mr6970124ybk.102.1702641223437; Fri, 15 Dec 2023 03:53:43 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1c03eb18-a6ac-45c8-8fea-46097bb4e132@gmail.com> <20231215064823.ltm55fk4zclsuuwq@vireshk-i7> <20231215112418.usky65sibhbiubyx@vireshk-i7> In-Reply-To: <20231215112418.usky65sibhbiubyx@vireshk-i7> From: Miguel Ojeda Date: Fri, 15 Dec 2023 12:53:32 +0100 Message-ID: Subject: Re: [PATCH V2] docs: rust: Clarify that 'rustup override' applies to build directory To: Viresh Kumar Cc: Tiago Lam , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Jonathan Corbet , Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 15, 2023 at 12:24=E2=80=AFPM Viresh Kumar wrote: > > I thought people aren't required to enter the build directory now (but > just source code directory) and simply do: > > make LLVM=3D1 O=3D rustupoverride Yeah, that is correct, but we don't need to write the `O=3D` in the commands themselves. The idea is that 1) the commands can be easily copy-pasted, 2) commands look simple (i.e. there are many other variations and options you may pass), 3) newcomers do not need to care about `O=3D` (so it is extra simple for them). > Will this still work if we are in the build directory ? Both should work (as long as the initial setup in the build folder is done, of course), so I think we can simply remove the mention about "enter ..." now and simply give the command. In fact, even if Kbuild did not support that, we could still remove the "enter ...", because then the `make` would need to be run like any other target from the source tree. In other words, regardless of the answer, we could remove it thanks to the new target, unless I am missing something. Cheers, Miguel