aboutsummaryrefslogtreecommitdiffhomepage
path: root/protoc-artifacts/build-protoc.sh
diff options
context:
space:
mode:
authorGravatar zhangkun83 <zhangkun@google.com>2015-03-25 16:07:50 -0700
committerGravatar zhangkun83 <zhangkun@google.com>2015-03-25 16:07:50 -0700
commit488162db1e59f74f7b5f094aa87fdd4a324dc3c0 (patch)
treed9548de70b12194899378b9cf30031e5071dec7c /protoc-artifacts/build-protoc.sh
parent82524fe5aaa66e7a36285c25321afd79f7a98680 (diff)
Gradle script to publish protoc binaries
Diffstat (limited to 'protoc-artifacts/build-protoc.sh')
-rwxr-xr-xprotoc-artifacts/build-protoc.sh8
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)