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

Drop coverage linker flags from stdlib build #3522

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Apr 6, 2023

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

We never compile CGo with coverage instrumentation and the stdlib contains no user-provided C/C++ code, so linking coverage runtimes is never needed.

Which issues(s) does this PR fix?

Work towards #3472

(fixing the issue requires a change to Bazel)

Other notes for review

@fmeum
Copy link
Collaborator Author

fmeum commented Apr 6, 2023

Stacked on #3521

Copy link
Contributor

@tyler-french tyler-french left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested bazel coverage on a few Cgo targets in Uber's repo.

@fmeum fmeum enabled auto-merge (squash) April 7, 2023 16:10
We never compile CGo with coverage instrumentation and the stdlib
contains no user-provided C/C++ code, so linking coverage runtimes is
never needed.
@fmeum fmeum merged commit 3b491f1 into bazelbuild:master Apr 7, 2023
1 check passed
@fmeum fmeum deleted the 3472-coverage-stdlib branch April 8, 2023 22:07
linzhp pushed a commit that referenced this pull request Apr 20, 2023
We never compile CGo with coverage instrumentation and the stdlib contains no user-provided C/C++ code, so linking coverage runtimes is never needed.
tingilee pushed a commit to tingilee/rules_go that referenced this pull request Jul 19, 2023
We never compile CGo with coverage instrumentation and the stdlib contains no user-provided C/C++ code, so linking coverage runtimes is never needed.
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.

None yet

3 participants