commit | 488162db1e59f74f7b5f094aa87fdd4a324dc3c0 | [log] [tgz] |
---|---|---|
author | zhangkun83 <zhangkun@google.com> | Wed Mar 25 16:07:50 2015 -0700 |
committer | zhangkun83 <zhangkun@google.com> | Wed Mar 25 16:07:50 2015 -0700 |
tree | d9548de70b12194899378b9cf30031e5071dec7c | |
parent | 82524fe5aaa66e7a36285c25321afd79f7a98680 [diff] [blame] |
Gradle script to publish protoc binaries
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh new file mode 100755 index 0000000..137c5d6 --- /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)