configure: rename error() to throw()
This commit is contained in:
parent
1d15eec7f8
commit
8568ca2fb3
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
@ -14,7 +14,7 @@ present () {
|
||||||
using () {
|
using () {
|
||||||
printf "using $1\n"
|
printf "using $1\n"
|
||||||
}
|
}
|
||||||
error () {
|
throw () {
|
||||||
>&2 printf "$(basename $0): $1\n"
|
>&2 printf "$(basename $0): $1\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ gen_CC () {
|
||||||
elif present gcc; then
|
elif present gcc; then
|
||||||
cc=gcc
|
cc=gcc
|
||||||
else
|
else
|
||||||
error "C compiler not found, please acquire a copy of LLVM Clang or the GNU C compiler"
|
throw "C compiler not found, please acquire a copy of LLVM Clang or the GNU C compiler"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
using "$cc"
|
using "$cc"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue