diff options
author | zhangkun83 <zhangkun@google.com> | 2015-03-25 16:07:50 -0700 |
---|---|---|
committer | zhangkun83 <zhangkun@google.com> | 2015-03-25 16:07:50 -0700 |
commit | 488162db1e59f74f7b5f094aa87fdd4a324dc3c0 (patch) | |
tree | d9548de70b12194899378b9cf30031e5071dec7c /protoc-artifacts/build-protoc.sh | |
parent | 82524fe5aaa66e7a36285c25321afd79f7a98680 (diff) | |
download | protobuf-488162db1e59f74f7b5f094aa87fdd4a324dc3c0.tar.gz protobuf-488162db1e59f74f7b5f094aa87fdd4a324dc3c0.tar.bz2 protobuf-488162db1e59f74f7b5f094aa87fdd4a324dc3c0.zip |
Gradle script to publish protoc binaries
Diffstat (limited to 'protoc-artifacts/build-protoc.sh')
-rwxr-xr-x | protoc-artifacts/build-protoc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh new file mode 100755 index 00000000..137c5d63 --- /dev/null +++ b/protoc-artifacts/build-protoc.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Override the default value set in configure.ac that has '-g' which produces +# huge binary. +export CXXFLAGS=-DNDEBUG + +cd $(dirname "$0")/.. && ./configure --disable-shared && make && + cd src && (strip protoc || strip protoc.exe) |