mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
20 lines
311 B
Bash
Executable file
20 lines
311 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# set -x
|
|
set -e
|
|
|
|
if [ "$BUILD_CMD" == "cross" ]; then
|
|
if [ -z "$CC" ]; then
|
|
echo "make.sh: CC is not set" >&2
|
|
exit 111
|
|
fi
|
|
if [ -z "$AR" ]; then
|
|
echo "make.sh: AR is not set" >&2
|
|
exit 111
|
|
fi
|
|
|
|
cross.sh make CC=$CC AR=$AR "$@"
|
|
else
|
|
make "$@"
|
|
fi
|