I'm trying to include a precompiled version of my library with the library in order to reduce compilation time at the user end. I've read any texts I can find from this forum and on the Arduino web page about how to precompile a library, yet I can't get it to work. Any help would be appreciated.
I'm using ESP32 and Arduino IDE 2.1.1.
I have generated the myLibrary.a file successfully, and it is in the src folder of my library like this - myLibrary/src/esp32/libmyLibrary.a
In the library.properties, I've set precompiled=full and ldflags=-lmyLibrary.
When I compile a program that includes myLibrary.h, the precompiled library is not used. For testing, I moved the source files of the library to a different folder so that they can't be used instead. In this case, I just get "myLibrary.h: no such file or directory". With the compiler verbose output, there is no indication that the IDE would try to find the precompiled version. I've restarted both my PC and the Arduino IDE after modifying the library.properties.
Any ideas?