Skip to content

Change compiler version lookup approach to prevent duplicating flags - #180

Open
sdassow wants to merge 2 commits into
fyne-io:mainfrom
sdassow:feature/gcc-flag-detection
Open

sdassow wants to merge 2 commits into
fyne-io:mainfrom
sdassow:feature/gcc-flag-detection

Conversation

@sdassow

@sdassow sdassow commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Better solution for #175 by avoiding duplicate flags to begin with.

This gets the version and default compiler flags by building an empty main() in one go, which should only be slightly slower than calling cc --version.

@andydotxyz

Copy link
Copy Markdown
Member

I'm not quite sure how this works compared to the previous matching, possibly in part due to not being sure how the return types are handled in the line:

ccVer, err := ccVersionAndDefaultFlags()

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