Skip to content
Snippets Groups Projects
Commit 9d566c57 authored by Maxim Cournoyer's avatar Maxim Cournoyer Committed by Adrien Béraud
Browse files

contrib: Fallback to gcc if cc is not available.

Some systems do not ship a cc executable.

Change-Id: Idb8ee8a5da0433bd96fb75dfcf1bd2d0aa6355e1
parent 905b95cd
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ done
if test -z "$BUILD"
then
echo -n "Guessing build system... "
BUILD="`${CC:-cc} -dumpmachine`"
BUILD="`${CC:-$(command -v cc || command -v gcc)} -dumpmachine`"
if test -z "$BUILD"; then
echo "FAIL!"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment