-
Notifications
You must be signed in to change notification settings - Fork 2
Description
C++20 introduced the <format>
library to help print values nicely. We switched to it in #368. Unfortunately, the default macOS C++ compiler does not support it. There are workarounds (installing a GCC compiler and aliasing it to replace Clang) but this can be difficult, hard to remember, and overall unportable.
@ManushPatell found a 3rd party formatting library call fmt
which is compatible with GCC, Clang, and only requires C++11.
Task
-
Add fmt to all project's
common.lib_deps
section in theirplatformio.ini
file.See https://registry.platformio.org/libraries/fmtlib/fmt
Look at how we include
Embedded Template Library
in the libdeps section. The line forfmt
should look something like this -
Replace all uses of
<format>
in the repository with the equivalentfmt
call. -
Have someone with a Mac try to build the projects (there's no reason it shouldn't work, but let's make sure)