Skip to content

Commit

Permalink
Use pwd instead of realpath for macos
Browse files Browse the repository at this point in the history
Closes #10567

PiperOrigin-RevId: 512750155
  • Loading branch information
mkruskal-google authored and copybara-github committed Feb 27, 2023
1 parent b82232f commit 0a480ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/generate_descriptor_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a480ad

Please sign in to comment.