Apologies if my question seems naïve (it is my first question on this forum), but I am relatively new to the nuts and bolts of compiling c++ code (I have just switched to platformio from arduino ide). When I build a project for the first time I understand that I am going to need to compile all of the libraries for my system (either esp8266 or esp32-s) together with my source and then link them together to make the final executable. However, once this initial compilation is done I don’t see why all of these libraries need compiling again? I notice if I change my platform.ini file that everything will build again (even if I am just changing the baud rate or upload speed). Is it possible to specify options/flags to prevent this behaviour or am I misunderstanding the compilation process? I am working with VS code on linux (ubuntu x64).
Thank you in advance,