I am new to platformio, so my questions may sound naive.
I would like to modify the build commands and options in compiler and linker, in particular, the location of the toolchain, the options and location of the include libraries, etc… I tried to glean through documentation but it was still unclear to me how to do it. The documentation says “It simply works”, but it yet does not work for me and I cannot find documentation about its inner works.
Finally, i found the files in .vscode folder (c_cpp_properties.json, extensions.json and launch.json). These apparently have all the settings I would like to access, but they say:
// !!! WARNING !!! AUTO-GENERATED FILE!
// PLEASE DO NOT MODIFY IT AND USE “platformio.ini”:
Could anyone explain which component(s) automatically generate them and how to modify their contents reliably from platformio.ini? Where do they come/filled originally?
For instance, the compilerPath, compilerArgs, defines entries do not have direct match to platformio.ini keywords. How to explicitly change them?
Maybe a pointer to a good document would help…