fx build fix
This commit is contained in:
@@ -8,6 +8,18 @@ API_DIR="${REPO_ROOT}/api"
|
|||||||
PROTO_DIR="./proto"
|
PROTO_DIR="./proto"
|
||||||
PROTOC_BIN="${PROTOC:-protoc}"
|
PROTOC_BIN="${PROTOC:-protoc}"
|
||||||
PROTOC_INCLUDE="${PROTOC_INCLUDE:-/usr/include}"
|
PROTOC_INCLUDE="${PROTOC_INCLUDE:-/usr/include}"
|
||||||
|
if [ ! -f "${PROTOC_INCLUDE}/google/protobuf/timestamp.proto" ]; then
|
||||||
|
for candidate in /usr/include /usr/local/include /usr/lib/include /usr/local/share/include; do
|
||||||
|
if [ -f "${candidate}/google/protobuf/timestamp.proto" ]; then
|
||||||
|
PROTOC_INCLUDE="${candidate}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if [ ! -f "${PROTOC_INCLUDE}/google/protobuf/timestamp.proto" ]; then
|
||||||
|
echo "[proto] failed to locate google/protobuf well-known types; set PROTOC_INCLUDE" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! command -v "${PROTOC_BIN}" >/dev/null 2>&1; then
|
if ! command -v "${PROTOC_BIN}" >/dev/null 2>&1; then
|
||||||
echo "[proto] protoc binary not found" >&2
|
echo "[proto] protoc binary not found" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user