Skip to content

Fix polyfill selection for compile tasks + use large distros #1243

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 3 commits into from
Oct 29, 2024

Conversation

eramongodb
Copy link
Contributor

Verified by this patch.

#1194 added the RHEL 7.9 distro to test against GCC 4.8.5 and the bsoncxx polyfill impls via BSONCXX_POLYFILL: impls. However, the "compile" EVG function doesn't know about this env var, as it is only used by the scan-build tasks. Therefore, the task has actually been compiling against mnmlstc/core instead.

This PR extends the BSONCXX_POLYFILL pattern to the "compile" EVG function and compile.sh script for consistency, replacing the USE_POLYFILL_BOOST env var. The task now compiles with bsoncxx impls as intended. This revealed some compilation errors due to unused named parameters in optional.hpp, which this PR also addresses.

As a drive-by improvement, this PR also moves all compile/build/etc. tasks to large distro variants to reduce task execution times.

@eramongodb eramongodb requested a review from kevinAlbs October 29, 2024 14:44
@eramongodb eramongodb self-assigned this Oct 29, 2024
Copy link
Collaborator

@kevinAlbs kevinAlbs 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 for the fix. LGTM

@eramongodb eramongodb merged commit 72a2598 into mongodb:master Oct 29, 2024
71 of 78 checks passed
@eramongodb eramongodb deleted the cxx-evg-rhel79 branch October 29, 2024 15:51
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.

2 participants