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

languages and cstd support #3757

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded added this to the 2.4.0 milestone Jun 4, 2024
Regarding ``languages`` definition, the following will happen:

- If no ``languages`` is defined or ``C`` is not a declared language, ``compiler.cstd`` subsetting will be automatically removed
at package ``configure()`` time (to achieve backward compatibility).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
at package ``configure()`` time (to achieve backward compatibility).
at package ``configure()`` time (to achieve backward compatibility).
Thus Conan assumes that ``C++`` is the default value for ``languages`` if not overriden by the user.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not super accurate, it will not be reported languages = "C++" if it is not defined in any of the places it is reported (json output, dependencies interface, etc), it will be an empty list. So it is not the default value, the default value is an empty list.

@@ -29,6 +29,12 @@ recipe to remove them so they are not used in the recipe:
# No need to delete those settings here, they were already deleted
pass

.. note::

From Conan 2.4, the above ``configure()`` is not necessary if defined ``languages = "C"`` recipe
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
From Conan 2.4, the above ``configure()`` is not necessary if defined ``languages = "C"`` recipe
From Conan 2.4, the above ``configure()`` is not necessary if defining ``languages = "C"`` as a recipe

Copy link
Member Author

Choose a reason for hiding this comment

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

It would be more like in the recipe? Or as a recipe attribute?

reference/extensions/profile_plugin.rst Outdated Show resolved Hide resolved
Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
@czoido czoido merged commit 3a934a2 into conan-io:develop2 Jun 5, 2024
2 checks passed
@memsharded memsharded deleted the feature/languages branch June 5, 2024 09:32
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.

3 participants