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

build: Don't pass inherited PGO flags to GNU compilers #1363

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

mrkajetanp
Copy link
Contributor

Clang and GNU use different PGO libraries, so PGO flags inherited from rustc should not automatically be passed to GNU compilers.

Fixes #1354

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thank you LGTM

cc @madsmtm can you double check this please?

Copy link
Collaborator

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Approve of the approach, only concern is code comment (which is non-blocking if we're in a hurry).

src/flags.rs Show resolved Hide resolved
Clang and GNU use different PGO libraries, so PGO flags inherited
from rustc should not automatically be passed to GNU compilers.

Fixes rust-lang#1354
@NobodyXu NobodyXu merged commit 7dab895 into rust-lang:main Jan 12, 2025
52 checks passed
@github-actions github-actions bot mentioned this pull request Jan 12, 2025
@madsmtm madsmtm added the bug label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propagated coverage flags cause gcov link errors
3 participants