kokoro/release/protoc/macos/build.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | CXXFLAGS_COMMON="-std=c++14 -DNDEBUG -mmacosx-version-min=10.9" |
| 5 | |
| 6 | cd github/protobuf |
| 7 | ./autogen.sh |
| 8 | |
| 9 | mkdir build64 && cd build64 |
| 10 | export CXXFLAGS="$CXXFLAGS_COMMON -m64" |
| 11 | ../configure --disable-shared |
| 12 | make -j4 |
| 13 | file src/protoc |
| 14 | otool -L src/protoc | grep dylib |
| 15 | cd .. |