Ive got some code which targets different platforms, with platform specific .cpp
files for each.
Currently PIO tries to compile all the .cpp
files under /src
for both platforms and therefore I get build errors for the code for the “other” platform.
Where am I supposed to put the platform specific cpp code? Is there some built-in mechanism for searching for a src folder named by the platform?
Thanks