Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp1427443qtf; Fri, 16 Jun 2023 08:21:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WtHXp0YLS51VjLrI2ub28jOGfPeu5ysiktNXH7/r25WYZXMkCXy1X+1EJ+XMUBj9sVHss X-Received: by 2002:a05:6a20:938b:b0:e9:5b0a:deff with SMTP id x11-20020a056a20938b00b000e95b0adeffmr2726794pzh.22.1686928905740; Fri, 16 Jun 2023 08:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686928905; cv=none; d=google.com; s=arc-20160816; b=GdQ+1eMMr/+YWIfDykXvTn+OhHRA+kOopv/06gbjncUSZXyP8Q7oOV3bjkMwr0OsK5 OhLTnYtnlp9yaDc0ng++T5DQ9KU584lqy6Qt7/IfpEHIW+k3nP/5uoBkmvenKIDlepbW VMB1w9uydj4OzXIuuNpXJtPYnDdAB6nIMCYt3hTe0dyaP/+yXWmzymlEizU3EscAupM4 V84zlkreTu0aMVeTrNqQv24+/LUtkT2zUpgg+B1LGhgzgXSke+KsfGwxGBcw7kQJCR3h C8nTqf3kf5Cz8iQN+W2wujnQOi8NPTg0phCRTjNqEdomPxLoLouujZ6W/AyeiaecB9Z9 ivog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=U88tdfNVtbOWIg3yElvA/Pd2Mu59Yv00Wm7QJm0BpI8=; b=xAeZVNWYX3k8H/N/juhQRRc9/HJsgD9ApjA1Kzfcb6RSvJnrL8/UDAX26kBJqvBu51 QwxDshhFTiA7HmIu2zffgTbwF/m4gSGUDzRgcYkxpHMwPV1w3xcFvUXhDE28bE+zOPWJ 6SlTZA2kIirupYY0oL/m+II7sxfnENbk20mSMtXuLTFFX5CSImerUwiH/WeJFm18YJNW 8hw2gQSgfRoSw3ixjVF/eG42MwHogERDvupYk3K1EX0bmt86wsiQuaVdhwbO+GUYsc2Q PHJ+DSkVVdgJtrYD3jbfMglyNi1DFJ/hL8HcRLKDzTgfIH77u9u7ASB09PEeOK9t4iJ6 SObg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fd5NRQbN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a625e06000000b0063b7c4435c0si15338128pfb.54.2023.06.16.08.21.32; Fri, 16 Jun 2023 08:21:45 -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=@gmail.com header.s=20221208 header.b=fd5NRQbN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345584AbjFPPBC (ORCPT + 99 others); Fri, 16 Jun 2023 11:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345172AbjFPPBB (ORCPT ); Fri, 16 Jun 2023 11:01:01 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319FE30E7; Fri, 16 Jun 2023 08:01:00 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6b28fc460bcso712580a34.1; Fri, 16 Jun 2023 08:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686927659; x=1689519659; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=U88tdfNVtbOWIg3yElvA/Pd2Mu59Yv00Wm7QJm0BpI8=; b=fd5NRQbNwFNBZqgRfAPNhSSQmAIH7Ulzp8MDABOLBQVW/DgYgvvnt8iMUCdskAyThj GC91fisA9oVh+fgns77IccmhuuUAleNPaLb7LNcVEIOz24SPbvQHkpI1SUy594WJYk3P Pzq14p9EnJ3X1DZ687E5I7bqyLxJZZT0v1TF0ErYBfonNLDg0N52LWnuvtNdMS5oVLkP g2EA+71X/jrnvP+zXWa/5z/geiDPpcff3Fsg/fDorb7fKWeqeMR+mX480MlthDfcm5LY SaFPO+HZXL3YkkVtBNLvAvlucGBgTJ5QMxDW7NncDhg/9KyRo+4wCNibIKqQ4Nls7M3B mIQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686927659; x=1689519659; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U88tdfNVtbOWIg3yElvA/Pd2Mu59Yv00Wm7QJm0BpI8=; b=YrGR8BawoHCMqSI94EJWCmm/uc5q8cZyN1FHnl3tEJfBqpi39qXtT0aTdHGnd+5KoK Ieh9i07G1XqaOjeF+CnM0V+6tr6JaupyX5gzI2yfgewuQCMHsPtKI/dMnNGBYYfj6pOm sMQ7X0b74q4enmF4q/z3UYx7Tv+IzDZ8aTA/zLK0FzFL4AUigA4rYGcCA1mOkwawToWg iFM5eZiPbcokFRhGj4KUr78puao1GRmeHl5CLtDY/QnXavkVXVsh9nBFeflibJiWcsR8 A4WnzWinYMriQ9Mo+IL/EHb1Ga5oOgm34UEy9gF+VlFA1ib/2Mggcz6C9LJ2Y9ogxht/ OE5A== X-Gm-Message-State: AC+VfDzoUOg6z20ezwjD7fKrG9eZZ3eYsJ5KdflDSEXjFdPdUKFqerIq V7BQn+bC5VC80nxlh1ib0KM= X-Received: by 2002:a9d:62d3:0:b0:6b2:ac44:bf88 with SMTP id z19-20020a9d62d3000000b006b2ac44bf88mr2737134otk.10.1686927659363; Fri, 16 Jun 2023 08:00:59 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id s10-20020a05683004ca00b006add66c7d73sm7126937otd.27.2023.06.16.08.00.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 08:00:58 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2023 10:58:27 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 02/11] kbuild: rust_is_available: fix version check when CC has multiple arguments Content-Language: en-US To: Miguel Ojeda , Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor Cc: 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, Russell Currey References: <20230616001631.463536-1-ojeda@kernel.org> <20230616001631.463536-3-ojeda@kernel.org> From: Martin Rodriguez Reboredo In-Reply-To: <20230616001631.463536-3-ojeda@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 6/15/23 21:16, Miguel Ojeda wrote: > From: Russell Currey > > rust_is_available.sh uses cc-version.sh to identify which C compiler is > in use, as scripts/Kconfig.include does. cc-version.sh isn't designed to > be able to handle multiple arguments in one variable, i.e. "ccache clang". > Its invocation in rust_is_available.sh quotes "$CC", which makes > $1 == "ccache clang" instead of the intended $1 == ccache & $2 == clang. > > cc-version.sh could also be changed to handle having "ccache clang" as one > argument, but it only has the one consumer upstream, making it simpler to > fix the caller here. > > Signed-off-by: Russell Currey > Fixes: 78521f3399ab ("scripts: add `rust_is_available.sh`") > Link: https://github.com/Rust-for-Linux/linux/pull/873 > [ Reworded title prefix and reflow line to 75 columns. ] > Signed-off-by: Miguel Ojeda > --- > [...] Reviewed-by: Martin Rodriguez Reboredo