Skip to content
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

Feature: Change to Mbed CLI 2's CMake Build System #24

Open
pearson opened this issue Jun 12, 2021 · 0 comments
Open

Feature: Change to Mbed CLI 2's CMake Build System #24

pearson opened this issue Jun 12, 2021 · 0 comments

Comments

@pearson
Copy link

pearson commented Jun 12, 2021

I'd like to suggest that the PlatformIO Mbed support be switched to the newer Mbed CLI 2 CMake build system. This is the replacement build system being used for Mbed OS v6.5 and higher, and it offers many advantages over the old build system.

The biggest advantage is, of course, that the build system only compiles the libraries that are required for the project. (Finally!) While there have been many comments regarding the compilation speed of Mbed on PlatformIO, this change would make a night and day difference. (For example, a clean build of the standard Blinky example with Mbed CLI 2 under Windows 10 on a Ryzen 5900x system takes 10 seconds.)

A secondary advantage to the new build system is that it will fully take advantage of systems with high CPU core counts. Where the current Mbed build system in PlatformIO might occasionally spike above 50% CPU usage on a system with many cores, the Mbed CMake-based system regularly maxes the CPU out.

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

No branches or pull requests

1 participant