diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-05-02 17:23:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 17:23:24 +0800 |
commit | 6a01363d1ddb15fa79817c425de472066e72a094 (patch) | |
tree | b403723ef065907612c7f96fa5b4c89eaa012d05 /build/ci.go | |
parent | 5449139ca2f2f6208cc26cc54d562ab981855705 (diff) | |
parent | 58c4e033f4791696da7cb1de633b55af337fd976 (diff) | |
download | go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar.gz go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar.bz2 go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar.lz go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar.xz go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.tar.zst go-tangerine-6a01363d1ddb15fa79817c425de472066e72a094.zip |
Merge pull request #16644 from ligi/reduce_aar_size
build: Add ldflags "-s -w" when building aar
Diffstat (limited to 'build/ci.go')
-rw-r--r-- | build/ci.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/ci.go b/build/ci.go index 5fce3c8e6..204c20675 100644 --- a/build/ci.go +++ b/build/ci.go @@ -731,7 +731,7 @@ func doAndroidArchive(cmdline []string) { // Build the Android archive and Maven resources build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind")) build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK"))) - build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile")) + build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile")) if *local { // If we're building locally, copy bundle to build dir and skip Maven @@ -852,7 +852,7 @@ func doXCodeFramework(cmdline []string) { // Build the iOS XCode framework build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind")) build.MustRun(gomobileTool("init")) - bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "-v", "github.com/ethereum/go-ethereum/mobile") + bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "--tags", "ios", "-v", "github.com/ethereum/go-ethereum/mobile") if *local { // If we're building locally, use the build folder and stop afterwards |