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

[7.2.0] Combined cc_shared_library cherry-picks #22321

Merged
merged 5 commits into from May 10, 2024

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented May 10, 2024

Cherry-picks:

Closes #21986
Closes #22053
Closes #22113

Googler and others added 3 commits May 10, 2024 17:38
This enables the functionality to generate .pdb files when building a DLL from a cc_shared_library target with the Lexan toolchain, which is already supported when using a cc_binary target.

The change has been tested manually with a local cc_shared_library target, with and without the shared_lib_name attribute.

I'm not exactly sure how the automated/unit tests for cc_shared_library work, but it seems like when the test targets in //third_party/bazel/src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/BUILD.builtin_test are built for Windows, the pdb logic should also be executed, so if there are failures they should be caught. A test that would make sense is to check the filenames for the generated pdb files, but I don't see tests that do this for DLLs so I assume we're not doing that for Windows.

PiperOrigin-RevId: 588441321
Change-Id: I20aa6d855514d3864c7f2f4b658f279367128030
…uilds.

This will decrease binary size for binaries built with fastbuild by ~15-17% (https://docs.google.com/spreadsheets/d/1Jy-jvrdfp3hcf5-EIAUj5Arr6-6g9y0A14sdTGZiqMM/edit?resourcekey=0-9qG_DHCYO0N-3TrRsGoYZA#gid=899160323)

BEGIN_PUBLIC
Increase memory for link actions.
END_PUBLIC

PiperOrigin-RevId: 601570607
Change-Id: I54614de97ca8affb73fb2eece38d6671bfe6e83a
Simplifies the test of `cc_shared_library`'s runfiles behavior using new rules_testing features, which also result in better failure messages.

Also format `BUILD.builtin_test` with buildifier to simplify future contributions.

Work towards bazelbuild#21833

Closes bazelbuild#21880.

PiperOrigin-RevId: 626315579
Change-Id: Ib7b3d1367586ba7215132d6a9f3711f4ae0a9b09
Copy link

google-cla bot commented May 10, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

fmeum added 2 commits May 10, 2024 17:49
Work towards bazelbuild#21622

RELNOTES: `native.package_relative_label` can now be used in rule initializers.

Closes bazelbuild#21740.

PiperOrigin-RevId: 631546734
Change-Id: Id6eb237f0f79195b678bb954deaef071e1c45ab1
@fmeum fmeum changed the title 21986 cherry pick Combined cc_shared_library cherry-picks May 10, 2024
@fmeum fmeum marked this pull request as ready for review May 10, 2024 15:54
@fmeum fmeum requested a review from a team as a code owner May 10, 2024 15:54
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability Issues for Configurability team labels May 10, 2024
@fmeum
Copy link
Collaborator Author

fmeum commented May 10, 2024

@keertk This requires a CLA override due to a Google committer.

This also doesn't contain #22283 yet, which is still being merged.

@keertk
Copy link
Member

keertk commented May 10, 2024

Thanks! Looks like 22283 is waiting on some internal fixes.
@Wyverald can you help with the CLA?

@keertk keertk enabled auto-merge May 10, 2024 16:00
@keertk keertk changed the title Combined cc_shared_library cherry-picks [7.2.0] Combined cc_shared_library cherry-picks May 10, 2024
@keertk keertk added this pull request to the merge queue May 10, 2024
Merged via the queue into bazelbuild:release-7.2.0 with commit cfb9491 May 10, 2024
33 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label May 10, 2024
@fmeum fmeum deleted the 21986-cherry-pick branch May 11, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability Issues for Configurability team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants