Re: [PATCH v2] kbuild: check the minimum compiler version in Kconfig
From: Ilie Halip <hidden>
Date: 2021-01-14 07:56:06
Also in:
lkml
From: Ilie Halip <hidden>
Date: 2021-01-14 07:56:06
Also in:
lkml
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.