Skip to content

Conversation

@aedart
Copy link
Contributor

@aedart aedart commented Mar 18, 2025

PR adds a new gcc_info() util function that is able to obtain the path to GCC and the version. In addition, it also fixes the issue that an internal "GCC_TOOL" property was bleeding into CMake's global scope, due to auto-caching of variable by Cmake's find_program.

aedart added 5 commits March 18, 2025 15:26
While our "Core Lib" actually expects a GCC_TOOL (path) to be available, invoking the gcc_version() automatically cached the property into CMake's global scope. This fixes the issue.
Function obtains path to available GCC cli, and also assigns the obtained version.
The gcc_version() util has been changed to use this new util to obtain GCC's version, which no longer bleeds variables into CMake's global scope.
@aedart aedart added bug Something isn't working enhancement New feature or request labels Mar 18, 2025
@aedart aedart self-assigned this Mar 18, 2025
@aedart aedart merged commit 965917d into main Mar 18, 2025
4 checks passed
@aedart aedart deleted the add-gcc-info branch March 18, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants