fx build fix
This commit is contained in:
@@ -9,7 +9,7 @@ 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
|
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
|
for candidate in /usr/include /usr/local/include /usr/lib/include /usr/local/share/include "$(dirname "$(command -v protoc)")/../include"; do
|
||||||
if [ -f "${candidate}/google/protobuf/timestamp.proto" ]; then
|
if [ -f "${candidate}/google/protobuf/timestamp.proto" ]; then
|
||||||
PROTOC_INCLUDE="${candidate}"
|
PROTOC_INCLUDE="${candidate}"
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user