We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d2d58 commit a622a1eCopy full SHA for a622a1e
build.sh
@@ -36,8 +36,10 @@ build_native()
36
build_cross()
37
{
38
local host="${CC%-gcc}"
39
- [ -n "$host" ] || \
40
- { echo "Missing CC variable, pass it with -c option." >&2; exit 1; }
+ if [ "$host" = "gcc" ]; then
+ echo "Invalid CC variable for cross compilation: $CC (clang not supported)" >&2
41
+ exit 1
42
+ fi
43
44
echo "===== cross-compile ${host} ${1}-tree build into $PREFIX ====="
45
build $1 $2 "--host=$host" CROSS_COMPILE="${host}-"
0 commit comments