I am writing here to suggest the addition of the Espressif ESP8266, ESP32 and ESP32S2
SoC to the list ot toolchains known to CMake. I know that the toolchain offered by Espressif
is a customized version of GCC and I think there may better support from CMake… or
perhaps that is not needed and is an error from my part.
A toolchain file is usually necessary (or at least very helpful) for cross compilation. @brad.king would know better whether adding it to CMake makes sense.
This is just a case of cross compilation. Given the small memory of the ESP32, no native compilation may be achieved, at least using GCC or CLang… perhaps TCC may be used
to compile C user code exclusively ?
Thanks. That looks like a gcc cross-compiler so CMake should just be able to use it with a proper toolchain file. See my previous link for help writing one.