Skip to content

Commit 5e47f7c

Browse files
committed
dev: when cross-building, use -c opt
This enables optimizations which you probably want for a cross-build. Epic: CRDB-17171 Release note: None
1 parent ab8fac2 commit 5e47f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88
set -euo pipefail
99

1010
# Bump this counter to force rebuilding `dev` on all machines.
11-
DEV_VERSION=80
11+
DEV_VERSION=81
1212

1313
THIS_DIR=$(cd "$(dirname "$0")" && pwd)
1414
BINARY_DIR=$THIS_DIR/bin/dev-versions

pkg/cmd/dev/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (d *dev) crossBuild(
200200
volume string,
201201
dockerArgs []string,
202202
) error {
203-
bazelArgs = append(bazelArgs, fmt.Sprintf("--config=%s", crossConfig), "--config=ci")
203+
bazelArgs = append(bazelArgs, fmt.Sprintf("--config=%s", crossConfig), "--config=ci", "-c", "opt")
204204
configArgs := getConfigArgs(bazelArgs)
205205
dockerArgs, err := d.getDockerRunArgs(ctx, volume, false, dockerArgs)
206206
if err != nil {

0 commit comments

Comments
 (0)