Skip to content

Commit

Permalink
Build bazel release binaries with -c opt.
Browse files Browse the repository at this point in the history
This saves ~5MB on linux (probably the same on other platforms as well).

Progress on #6314.

RELNOTES: None
  • Loading branch information
meisterT committed Feb 21, 2019
1 parent 18a0e23 commit eb68273
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bazelci/build_bazel_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ platforms:
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
build_flags:
- "-c"
- "opt"
macos:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
build_flags:
- "-c"
- "opt"
windows:
build_flags:
- "--copt=-w"
- "--host_copt=-w"
- "-c"
- "opt"
build_targets:
- "//src:bazel"

0 comments on commit eb68273

Please sign in to comment.