Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp487394pxb; Thu, 14 Jan 2021 10:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJz36Biy5L5vu+mHmKSkcoXGUZUEdzniP9Fxrg8hXc3vuaoC1auzjP6cZmn5MDlejq1dG45w X-Received: by 2002:a05:6402:1549:: with SMTP id p9mr2703647edx.387.1610649367205; Thu, 14 Jan 2021 10:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610649367; cv=none; d=google.com; s=arc-20160816; b=tsCAB8onPlZCJ88q20t0ZbduluCJrggUuomNN9w99s4WWPb+OCHUs/DjcoCUkNifTe XSgsFGk9eJPQSem/uWooUc7mrfDYF9/l9dNph20J4YtwSlqeVNW3E3+FoNYMAiSLCFxP ng4slXS3OkeqxCnVUB4PfgrjHu60Hupj96jwsVzKkUsd0sodMmlKkY1avJqoxoxvGIhk 6NQz/MmvmptofjqiOPQPhv2FXCtxWcBeday+fl/vGR9P3lowIbTd9TjMjsdOOMn6Gube a1vdagLqkA3qQ3sEdsjATCTD5cND1WyiKXEhrVmO9GhFQLgjfvyGl67eQWL76ztz4G6+ Zu6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jkDWkm7+rWVZYk8MvVS//EXKogbXqdcBArZyL8FNxdM=; b=gsJbz6hldHASvH7WTMLEIGBRKPxjTSFXVOpB5wiktiKWB7kUk4xkFHA10xXvf7pGH8 gXcz+/3xFqse697V0VQy/ZrU0mIJA+TulvXprjEnkMAWm0tQUmJLl6hlkOGzgVKeqejt DZpsom1wZwOarU0OTmUNR94jDF2/K/Bd70+Y8qXNZ3RQrRjZM1RpvBn2PHYOLELe4F6M lm63ueOujhkdl+JATJYbwjucQlRqSd0bInrcNbtGafXkBfep8bXvrUlQq5X24Ao3lU19 RBzjJdg7/TjhTBB5UnihjXGbEzkkJMAhdW3Nq1MNhi6yxPV1sgDAPCabKSyMD4Ykh6yp Apxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mUUX5puM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si2740725ejw.662.2021.01.14.10.35.43; Thu, 14 Jan 2021 10:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mUUX5puM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727379AbhANScz (ORCPT + 99 others); Thu, 14 Jan 2021 13:32:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726398AbhANScy (ORCPT ); Thu, 14 Jan 2021 13:32:54 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87F0C061575; Thu, 14 Jan 2021 10:32:14 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id y128so2671164ybf.10; Thu, 14 Jan 2021 10:32:14 -0800 (PST) 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=jkDWkm7+rWVZYk8MvVS//EXKogbXqdcBArZyL8FNxdM=; b=mUUX5puMI8nBttMrblkC5tIrFOQQ+iRww4NO7pijYMjz+7KqaOQdJ6sAaM2VwH+xZH xt5lbTz6Tfdfw+iL3zy7liPL3aLW3BMZRP1zf9H/DfnssbzW6kEeONm6Nt17mYGqE8Ir vOYVUP8+2jHzTgrsTGt9P0g7c/NF4pwzHgmaZajv52J7IndVGPhwdHo8172daCI/OF0a WFcPy/47bEyq3MWe9lg0utZlZ81P9x9ehvzClvae+lA/KTzNYt7sfyvYZc9isNxT1IAy HClveohBhINKv8Am+97yxvosavh2Q6Bhrs9Hc5mPp2iEgExHyUpm4zdwLk5hjFv2/rPr z2XA== 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=jkDWkm7+rWVZYk8MvVS//EXKogbXqdcBArZyL8FNxdM=; b=W8gsMBN+FphJPIAC0DAqfi5zOTwdfwCIQBcIyrsRpIcrIWUclr5GEhTf9xFFBsJgj8 fxyFIW9nvj39FjJp0vbCSCK32NISAseXqC7UbgFXQrI5ZwILZcMbJge+XIl/pCJ+N+Dj UcW3ER08ZafNv/vcZLtDf+dhRgddKtuTTqxMWaQzBo7e+KX+PTtyBQNdrGl0C3MxhRAT mlwG05CcurEar4jAT2gUiPGfLnimj4zTY+5vpC64casBQ02mCwM/wNfRVuIZ1sX6Cfqy rEwvYrA5+vbvxi6wXWSGYoLtiuGynfu7EhdFsiS4cIj+lB5iZx+VCFsqXteMwkUPZiUZ NsZA== X-Gm-Message-State: AOAM530YYaa37TW4N5mzt8YMaQjVjSps0SqyYvD2JhkBepSgDX4h1LrD 9y2D4wUf/8KlznskqQiNSb80z7JhFTI8zymwoyI= X-Received: by 2002:a25:50a:: with SMTP id 10mr12601986ybf.115.1610649134102; Thu, 14 Jan 2021 10:32:14 -0800 (PST) MIME-Version: 1.0 References: <20210114180709.303370-1-masahiroy@kernel.org> In-Reply-To: <20210114180709.303370-1-masahiroy@kernel.org> From: Miguel Ojeda Date: Thu, 14 Jan 2021 19:32:03 +0100 Message-ID: Subject: Re: [PATCH v3] kbuild: check the minimum compiler version in Kconfig To: Masahiro Yamada Cc: Linux Kbuild mailing list , Paul Gortmaker , Linus Torvalds , Nathan Chancellor , Nick Desaulniers , Will Deacon , clang-built-linux , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 7:08 PM Masahiro Yamada wrote: > > I unified the similar two scripts, gcc-version.sh and clang-version.sh > into the new cc-version.sh. The old scripts invoked the compiler multiple > times (3 times for gcc-version.sh, 4 times for clang-version.sh). I > refactored the code so the new one invokes the compiler just once, and > also tried my best to use shell-builtin commands where possible. Tested v3 with GCC, Clang and an old GCC too: $ scripts/cc-version.sh gcc-4.6.4 *** *** Compiler is too old. *** Your GCC version: 4.6.4 *** Minimum GCC version: 4.9.0 *** Reviewed-by: Miguel Ojeda Tested-by: Miguel Ojeda Cheers, Miguel