Messages in this thread | | | From | Miguel Ojeda <> | Date | Thu, 14 Jan 2021 19:32:03 +0100 | Subject | Re: [PATCH v3] kbuild: check the minimum compiler version in Kconfig |
| |
On Thu, Jan 14, 2021 at 7:08 PM Masahiro Yamada <masahiroy@kernel.org> 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 <ojeda@kernel.org> Tested-by: Miguel Ojeda <ojeda@kernel.org>
Cheers, Miguel
| |