Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp79212pxb; Wed, 13 Jan 2021 23:58:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzFWU7kjaEjp2VKNFeautqgQbWBe9ymsQGpNQ4Ys8LfPpSSoAhboI+yhY2xNzNaoJq8QvX X-Received: by 2002:a17:906:ae41:: with SMTP id lf1mr4421905ejb.369.1610611107939; Wed, 13 Jan 2021 23:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610611107; cv=none; d=google.com; s=arc-20160816; b=drfGd5XA6hgKJunOUwXkdj82aJmumBN/zZ0+6sD4d2A40ckf/+8veb+dlM6V8ewrJQ OS/Kbwkwx5rhlKEH8xtbeDrLarqNCD5FR3d6wvsA03EwEeIEB/CJT6+yZ8wZKIJc3Yoq 5KhAn5uCSq7/9tWq3IhGHW45Lel2QMxIyCZv3KeTKCdMPy3KzNHF42XOBuG0C6XMY28d qxBKRTkNkt56FCyW3xUBciqxS0hG1qg0HD0VPCvRTEKpuppXu5bWg5MwiGt4wyBKutW8 pfCF4qOr/TS+UL7vdTQCZ/llS3ADxKa/TvJTx0I5IQoLXv3pQrjb6qjyS3MDxmgyFh4D HXDw== 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=pP/ngkC2SUBvu5ZyykKyP1Wg6ESrX20r51brPw8EwXQ=; b=I2k7xIvXsPG6VDYmLwhs+bWjW5dDAi6dveeEVpWUZQgV7rHQz+jciWHQepKHoZA40c /92SXtV8DxeJbj+ifqtX6ckU0g/Mh7HUAtwORdfZz1FMPDeovBgmGNKvRFajxzk8Mzol vvyVch+uHSf12pKw/e5k1WtSTYVxatW6KPvA+n3UrUWsLeb6xc0UPdbGhDWRdpVDqeXb JA2SrSS6+fFYBAt8xoUKgPDg0bohy7k6k9Ra8IGqaN+PTg0V/F5FtFS+ZAJpPshmAw2D N+tSBw/L53TmylIzSyPyYmnU6kyOUbDPrpnLAImu+/heh6UCTWPcDQ9j51DXDO5HbU2f 4Zlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TzY9Q2KP; 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 s1si2057628ejq.292.2021.01.13.23.58.04; Wed, 13 Jan 2021 23:58:27 -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=TzY9Q2KP; 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 S1727641AbhANHzo (ORCPT + 99 others); Thu, 14 Jan 2021 02:55:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbhANHzo (ORCPT ); Thu, 14 Jan 2021 02:55:44 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E57C061575; Wed, 13 Jan 2021 23:55:03 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id h205so6730628lfd.5; Wed, 13 Jan 2021 23:55:03 -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=pP/ngkC2SUBvu5ZyykKyP1Wg6ESrX20r51brPw8EwXQ=; b=TzY9Q2KP6JTchYjg9Kiwl+HUS4cUiIuPDf6Bt4DxgC/mUAD7urumN/er4+4H6kea2o 5D6ZXs5SUQ4QRowzfjaYFpP5AX1xq5ict92POI8QFdfGwJQXRO/NjUp1UZwLqAuXlPzP aqSKKHz737D9zGk7iVm4Paw0noFzR3PbeJl9S3M2Eyk82mMrxI9IWKRLCQiGeAtU4+Uv WAy8Chd03tclC/Ey/0YpntLXbd9JmiA80V4pmWfpkNpBQQJlwrc3a5+d/Ow5HsQNFk10 NrV7aqjPqiyQpAnJpJQDuNcSxfC8ktwWHbD4PpRaDxaRMlBCpHT4Fr2U2p/gmwqdFIsp WVLQ== 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=pP/ngkC2SUBvu5ZyykKyP1Wg6ESrX20r51brPw8EwXQ=; b=PJwklCy+SntJL8bx5Z4a9adTmboyaa6dXLNsf703LCPJMGmFtwKdmYhV/B9tLJttzS Y6YVw6Ai05LZkztqRtL9tENell0vKZzR8L5/9D/u2qf0KHmy/xeETLTknWY7zM9MQnO3 SLHaiqA9d38KAB7+ee+mPfwPsoquUdoof/LCTed9WOGPwX6KEhDoEbyGU4HhMDC7172C zAZwNcwCWBh6q0zSFx3ayyyoKOJKZwSsBW3ixI+qKJHBTadJJ01ABJi/6MvQ4l51fcbs VsXkUWOHgLflWEW689R6ysUjqaFcjAp080vJXiLhEuVe6IUyVH13LtO8F50+YRtYD+cW TfKg== X-Gm-Message-State: AOAM533EuOcKpJ0y8jM7n1+ZHtigy0ievYfCi4tj/F219tMFsTimgULx 2XRIjrrPv05aw627AhVGXmJoCsqKWdpkKUmjuNs= X-Received: by 2002:a19:8557:: with SMTP id h84mr2571151lfd.201.1610610902380; Wed, 13 Jan 2021 23:55:02 -0800 (PST) MIME-Version: 1.0 References: <20210114042420.229524-1-masahiroy@kernel.org> In-Reply-To: <20210114042420.229524-1-masahiroy@kernel.org> From: Ilie Halip Date: Thu, 14 Jan 2021 09:54:51 +0200 Message-ID: Subject: Re: [PATCH v2] kbuild: check the minimum compiler version in Kconfig To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Paul Gortmaker , Linus Torvalds , Nathan Chancellor , Nick Desaulniers , Will Deacon , clang-built-linux , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, > + #elif defined(__INTEL_COMPILER) > + /* How to get the version of intel compiler? */ > + ICC 0 0 0 According to Intel documentation[1], this should do the trick: ICC __INTEL_COMPILER __INTEL_COMPILER_UPDATE __INTEL_COMPILER_BUILD_DATE I don't have the compiler installed, but I tested this on godbolt[2] and looks fine to me. What do you think? [1] https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/macros/additional-predefined-macros.html [2] https://godbolt.org/z/E5PE6f I.H.