Skip to content

nrf/Makefile: Fix GCC_VERION regex.#15553

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
andrewleech:nrf_arm_version
Jul 31, 2024
Merged

nrf/Makefile: Fix GCC_VERION regex.#15553
dpgeorge merged 1 commit into
micropython:masterfrom
andrewleech:nrf_arm_version

Conversation

@andrewleech
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@agatti agatti left a comment

Choose a reason for hiding this comment

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

Instead of using a regex and invoking sed, how about something like $(shell $(CC) -dumpversion)? It's been available in GCC since pretty much forever as far as I know.

@andrewleech
Copy link
Copy Markdown
Contributor Author

how about something like $(shell $(CC) -dumpversion)

Oh that's an easy yes! Thanks, not sure why I couldn't find that when I searched initially. Stack overflow let me down ;-)

Cheers, I'll update this shortly as such.

Previously it was truncating the first digit of the version if the major
number had more than one digit.

Signed-off-by: Andrew Leech <[email protected]>
@dpgeorge dpgeorge merged commit 70a7e0f into micropython:master Jul 31, 2024
@andrewleech andrewleech deleted the nrf_arm_version branch August 23, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants