Update c_check

This commit is contained in:
Martin Kroeker 2023-04-07 19:20:46 +02:00 committed by GitHub
parent 4a888566fa
commit d37e82edec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -35,9 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/" cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
fi fi
bn=`basename -z \"$compiler_name\"` bn=`basename \"$compiler_name\"`
case "$bn" in case "$bn" in
*-*) cross_suffix="$cross_suffix${bn%-*}-" *-*) if [ "$bn" != '-']; then
cross_suffix="$cross_suffix${bn%-*}-"
fi
esac esac
compiler="" compiler=""