blob: 981a01ea621639fca4dc8f8d12bf5baf27fa7f47 [file] [log] [blame] [view]
# Release builds
Release builds on automated build servers **must** have `--config=release` set.
Example:
```shell
$ tools/bazel run --config=release //common:kernel_aarch64_dist -- --destdir=out/dist
```
**NOTE**: The flag is set for builds on [ci.android.com](http://ci.android.com).
## SCM version
With `--config=release`, the build tries to embed SCM version to the artifacts.
However, additional work may be needed to embed the correct SCM version,
especially for external `kernel_module()`s.
See [scmversion.md](scmversion.md) for details.