-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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
won't conan/conan/internal/api/detect/detect_api.py Line 585 in dc0a754
This behaviour seems to be intentional, see also conan/conan/internal/api/detect/detect_api.py Lines 568 to 569 in 705672e
|
Yes, the profile default gcc version 15 is expected, good catch |
settings.yml
c5e5feb
to
315d1b4
Compare
Works on my machine, thanks for the reactivity ! |
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 thedetect_gcc_compiler()
detect method