Use pwd instead of realpath for macos

Closes https://github.com/protocolbuffers/protobuf/issues/10567

PiperOrigin-RevId: 512750155
pull/12042/head
Mike Kruskal 2023-02-27 15:36:10 -08:00 committed by Copybara-Service
parent b82232fbcb
commit 0a480ad51a
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@
set -e
if [[ -z "${PROTOC}" ]]; then
PROTOC=$(realpath protoc)
PROTOC=$(pwd)/protoc
fi
if [ ! -f $PROTOC ]; then
${BAZEL:-bazel} $BAZEL_STARTUP_FLAGS build -c opt //:protoc $BAZEL_FLAGS
PROTOC=$(realpath bazel-bin/protoc)
PROTOC=$(pwd)/bazel-bin/protoc
fi
if test ! -e src/google/protobuf/stubs/common.h; then