Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 # SPDX-License-Identifier: GPL-2.0-only
0003 #
0004 # Print the minimum supported version of the given tool.
0005 # When you raise the minimum version, please update
0006 # Documentation/process/changes.rst as well.
0007 
0008 set -e
0009 
0010 if [ $# != 1 ]; then
0011         echo "Usage: $0 toolname" >&2
0012         exit 1
0013 fi
0014 
0015 case "$1" in
0016 binutils)
0017         echo 2.23.0
0018         ;;
0019 gcc)
0020         echo 5.1.0
0021         ;;
0022 icc)
0023         # temporary
0024         echo 16.0.3
0025         ;;
0026 llvm)
0027         if [ "$SRCARCH" = s390 ]; then
0028                 echo 14.0.0
0029         else
0030                 echo 11.0.0
0031         fi
0032         ;;
0033 *)
0034         echo "$1: unknown tool" >&2
0035         exit 1
0036         ;;
0037 esac