KEMBAR78
development_tools: make gcc_version public api by cho-m · Pull Request #20632 · Homebrew/brew · GitHub
Skip to content

Conversation

cho-m
Copy link
Member

@cho-m cho-m commented Sep 4, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Useful to have as public API similar to how we use clang_build_version on macOS.

Add a default of host_gcc_path. path is set correctly as host_gcc_path is absolute so overrides the brew gcc path

brew(main):001> DevelopmentTools.gcc_version.to_s
=> "11.4.0"

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit 6e9da0b Sep 4, 2025
36 checks passed
@MikeMcQuaid MikeMcQuaid deleted the gcc_version branch September 4, 2025 08:03
@klao54

This comment was marked as spam.

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