8000 Add missing GCC 15 key to `settings.yml` by AbrilRBS · Pull Request #18193 · conan-io/conan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing GCC 15 key to settings.yml #18193

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 1 commit into from
Apr 29, 2025

Conversation

AbrilRBS
Copy link
Member
@AbrilRBS AbrilRBS commented Apr 29, 2025

Changelog: Feature: Add missing GCC 15 key to settings.yml
Docs: conan-io/docs#4084

This PR adds a missing 15 version for gcc, which is what the profiles detect by default.

In 2.17 we'll add -dumpfullversion to the detect_gcc_compiler() detect method

@AbrilRBS AbrilRBS added this to the 2.16.1 milestone Apr 29, 2025
@AbrilRBS AbrilRBS requested a review from czoido April 29, 2025 08:19
@AbrilRBS AbrilRBS mentioned this pull request Apr 29, 2025
8000
@@ -461,14 +461,11 @@ def detect_gcc_compiler(compiler_exe="gcc"):
if "clang" in out:
return None, None, None

ret, out = detect_runner('%s -dumpversion' % compiler_exe)
ret, out = detect_runner('%s -dumpfullversion -dumpversion' % compiler_exe)
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible that some non mainstream gcc-like compilers do not support -dumpfullversion and crash?
I think we previously didn't add this because of the potential risk of breaking others, but we can try

@ericLemanissier
Copy link
Contributor
ericLemanissier commented Apr 29, 2025

won't

output.info("gcc>=5, using the major as version")
still kick in and keep only the major version ?

This behaviour seems to be intentional, see also

""" returns the default version that Conan uses in profiles, typically dropping some
of the minor or patch digits, that do not affect binary compatibility

@AbrilRBS
Copy link
Member Author

Yes, the profile default gcc version 15 is expected, good catch

@AbrilRBS AbrilRBS changed the title Dump full version of gcc, supported as early as gcc 4.1 Add missing GCC 15 key to settings.yml Apr 29, 2025
@czoido czoido changed the base branch from develop2 to release/2.16 April 29, 2025 09:44
@czoido czoido changed the base branch from release/2.16 to develop2 April 29, 2025 09:44
@AbrilRBS AbrilRBS force-pushed the ar/fix-gcc-detection branch from c5e5feb to 315d1b4 Compare April 29, 2025 09:49
@AbrilRBS AbrilRBS changed the base branch from develop2 to release/2.16 April 29, 2025 09:49
@AbrilRBS AbrilRBS assigned czoido and unassigned memsharded Apr 29, 2025
@czoido czoido merged commit eec0ba5 into conan-io:release/2.16 Apr 29, 2025
15 checks passed
@ericLemanissier
Copy link
Contributor

Works on my machine, thanks for the reactivity !

Sign up for free to join this conversation on GitHub 6A7B . Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0