diff options
author | Adam Cozzette <acozzette@gmail.com> | 2018-06-18 14:34:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 14:34:14 -0700 |
commit | ad85c3b4a2598670de129015fab03a97edea73bc (patch) | |
tree | b057e2332acded92eebfe01b33cee6963e771747 /kokoro | |
parent | 885be9c9828514595f2f1d24c45aec620b739730 (diff) |
Added Kokoro protoc release build for OS X (#4770)
This configuration builds both 32-bit and 64-bit binaries for Mac OS X.
One thing I had to change was to increase our minimum supported version
for 10.7 to 10.9, because 10.9 (Mavericks) appears to be the earliest
version supporting C++11.
Diffstat (limited to 'kokoro')
-rw-r--r-- | kokoro/release/protoc/macos/build.sh | 23 | ||||
-rw-r--r-- | kokoro/release/protoc/macos/release.cfg | 8 |
2 files changed, 31 insertions, 0 deletions
diff --git a/kokoro/release/protoc/macos/build.sh b/kokoro/release/protoc/macos/build.sh new file mode 100644 index 00000000..db9d3140 --- /dev/null +++ b/kokoro/release/protoc/macos/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -x +CXXFLAGS_COMMON="-DNDEBUG -mmacosx-version-min=10.9" + +cd github/protobuf +./autogen.sh + +mkdir build32 && cd build32 +export CXXFLAGS="$CXXFLAGS_COMMON -m32" +../configure --disable-shared +make -j4 +file src/protoc +otool -L src/protoc | grep dylib +cd .. + +mkdir build64 && cd build64 +export CXXFLAGS="$CXXFLAGS_COMMON -m64" +../configure --disable-shared +make -j4 +file src/protoc +otool -L src/protoc | grep dylib +cd .. diff --git a/kokoro/release/protoc/macos/release.cfg b/kokoro/release/protoc/macos/release.cfg new file mode 100644 index 00000000..da903d03 --- /dev/null +++ b/kokoro/release/protoc/macos/release.cfg @@ -0,0 +1,8 @@ +# Configuration for Mac OSX protoc release builds +build_file: "protobuf/kokoro/release/protoc/macos/build.sh" + +action { + define_artifacts { + regex: "**/protoc" + } +} |