aboutsummaryrefslogtreecommitdiffhomepage
path: root/kokoro/release/protoc/macos/build.sh
blob: db9d3140dbd836d5856bcda5b0ba80aef125fb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ..