Skip to content

Commit f9bc754

Browse files
committed
kbuild: dummy-tools: adjust to scripts/cc-version.sh
Commit aec6c60 ("kbuild: check the minimum compiler version in Kconfig") changed how the script detects the compiler version. Get 'make CROSS_COMPILE=scripts/dummy-tools/' back working again. Fixes: aec6c60 ("kbuild: check the minimum compiler version in Kconfig") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Tested-by: Nathan Chancellor <nathan@kernel.org> Acked-by: Miguel Ojeda <ojeda@kernel.org>
1 parent bf3c255 commit f9bc754

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • scripts/dummy-tools

scripts/dummy-tools/gcc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ if arg_contain --version "$@"; then
5757
fi
5858

5959
if arg_contain -E "$@"; then
60-
# For scripts/gcc-version.sh; This emulates GCC 20.0.0
60+
# For scripts/cc-version.sh; This emulates GCC 20.0.0
6161
if arg_contain - "$@"; then
62-
sed 's/^__GNUC__$/20/; s/^__GNUC_MINOR__$/0/; s/^__GNUC_PATCHLEVEL__$/0/'
62+
sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}'
6363
exit 0
6464
else
6565
echo "no input files" >&2

0 commit comments

Comments
 (0)