Skip to content

libtool: Don't remove gcov *.gcno file #15441

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

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Conversation

zeriyoshi
Copy link
Contributor

The libtool bundled with PHP is outdated and deletes *.gcno files used by gcov during the build process.

While this issue has already been resolved upstream, incorporating the fix at this point may not be practical. Therefore, we attempt to apply a fix to the current version.

This change will enable proper coverage output for third-party PHP Extensions.

Copy link
Member

@petk petk left a comment

Choose a reason for hiding this comment

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

This is also fixed in #13476 (I'll update the libtool in that PR soon to 2.5.1) so it has all recent updates in it for some modern compiler stuff).

Otherwise, we can add this patch in since the bundled libtool won't be upgraded for PHP-8.4.

Co-authored-by: Peter Kokot <peterkokot@gmail.com>
@petk petk merged commit d6afe05 into php:master Aug 16, 2024
9 of 10 checks passed
@zeriyoshi zeriyoshi deleted the dont_remove_gcno branch August 16, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants