configure: use gcc over cc
We don't know what the system cc supports in terms of command line flags, it could be tcc for all we know. Aiming for gcc over cc allows the build to succeed when cc is not gcc or clang, but the user can always override it themselves with the -c configure switch.
This commit is contained in:
parent
90701bf0ef
commit
ef3da25fb5
2 changed files with 4 additions and 4 deletions
6
configure
vendored
6
configure
vendored
|
@ -80,12 +80,12 @@ gen_CC () {
|
|||
fi
|
||||
if present clang; then
|
||||
cc=clang
|
||||
elif present cc; then
|
||||
cc=cc
|
||||
elif present gcc; then
|
||||
cc=gcc
|
||||
elif present cc; then
|
||||
cc=cc
|
||||
else
|
||||
throw "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
|
||||
|
||||
using "$cc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue