Suppose I have two sketches named sk1 and sk2 and I want to compile them with different compiler options. Is it possible to do this and, if so, how? I know that I can edit the platform.local.txt file to add custom compiler options but this results in global options for ALL sketches so I would need to edit this file every time I compile either sk1 or sk2. What I am seeking is to find out if there is a way to specify compiler options locally for each sketch. One almost ideal solution would be adding a local platform.local.txt file in the same directory as the sketch itself but this would require changes to the Arduino IDE so it would search for the existence of these files during compilation.
I welcome any ideas.
Thanks for your response in advance.