Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up build by avoiding build config duplication
Compile substantially all of workerd in the bazel 'target' configuration instead of 'exec', which allows us to avoid compiling major components twice. This should offer a large performance improvement, especially when rebuilding after a V8 update or building all targets and drive down the worst-case CI build time significantly. Bazel supports an exec configuration for building code that needs to run on the host machine during the build, e.g. tools used to generate source files or type definitions. When not cross-compiling exec and target will be the same, but bazel does not offer a flag to use just one configuration when the configurations are identical (bazelbuild/bazel#14848), making manual changes necessary. Bazel makes it very difficult to set the config for a target at build time, so default to using cfg "target" globally for now.
- Loading branch information