blob: b6593eac5003cfae2ddfce5ac50ab6155058377e [file] [log] [blame]
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +09001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3#
4# Print the minimum supported version of the given tool.
5# When you raise the minimum version, please update
6# Documentation/process/changes.rst as well.
7
8set -e
9
10if [ $# != 1 ]; then
11 echo "Usage: $0 toolname" >&2
12 exit 1
13fi
14
15case "$1" in
16binutils)
17 echo 2.23.0
18 ;;
19gcc)
Nick Desaulniers76ae8472021-09-10 16:40:38 -070020 echo 5.1.0
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090021 ;;
22icc)
23 # temporary
24 echo 16.0.3
25 ;;
26llvm)
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070027 if [ "$SRCARCH" = s390 ]; then
Heiko Carstens82188272022-05-11 14:05:32 +020028 echo 14.0.0
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070029 else
Nathan Chancellordf05c0e2021-11-29 09:57:58 -070030 echo 11.0.0
Nathan Chancellore2bc3e92021-06-17 12:31:40 -070031 fi
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090032 ;;
Miguel Ojeda78521f32022-08-04 12:25:53 +020033rustc)
34 echo 1.62.0
35 ;;
36bindgen)
37 echo 0.56.0
38 ;;
Masahiro Yamadae24b3ff2021-03-16 01:12:55 +090039*)
40 echo "$1: unknown tool" >&2
41 exit 1
42 ;;
43esac