Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel] Do not compile wd_cc_library by default #1512

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Dec 29, 2023

Mark library targets as off-by-default. We do not ship any libraries as part of workerd releases or use them outside of bazel, so there is generally no need to build them explicitly. This allows us to not build library targets by default. Note that on macOS (and likely Windows) library targets will still be built as dependencies of other targets such as tests and workerd itself as start_stop_lib is not supported – on Linux binaries are built directly from object files so there's no need to build the library files.
This reduces the size of the build output folder from 6.1GB to 5.9GB on Linux CI builds.

@fhanau fhanau changed the title [DRAFT] Do not compile wd_cc_library by default Do not compile wd_cc_library by default Jan 28, 2024
@fhanau fhanau changed the title Do not compile wd_cc_library by default [bazel] Do not compile wd_cc_library by default Jan 28, 2024
@fhanau fhanau marked this pull request as ready for review January 28, 2024 21:00
@fhanau fhanau requested review from a team as code owners January 28, 2024 21:00
@fhanau
Copy link
Collaborator Author

fhanau commented Jan 28, 2024

@penalosa @mrbbot Can I get an approval here? Looks like GitHub needs an approval from the Wrangler team for src/workerd/tools/BUILD.bazel.

@fhanau fhanau force-pushed the felix/lib-off-by-default branch from b122d93 to 100145d Compare January 28, 2024 21:14
@fhanau fhanau force-pushed the felix/lib-off-by-default branch from 100145d to 56defad Compare January 29, 2024 23:16
@fhanau fhanau merged commit b41a1df into main Jan 29, 2024
11 checks passed
@fhanau fhanau deleted the felix/lib-off-by-default branch January 29, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants