plerup/makeEspArduino

makeEspArduino pulls in un-needed includes and build fails

Closed this issue · 1 comments

Hello,
makeEspArduino for certain sketches is pulling in includes from user libraries that are NOT called by the sketch and is breaking the build compared to Arduino IDE that succeeds.

Sketch: BasicOTA.ino (no changes)
makeEspArduino pulls in the mDNSResolver user installed lib that is NOT needed by above sketch.

Please see attached log files.
ArduinoIDE.log
espMakeArduino.log

Library and include detection are hit and miss. Instead of only the needed include/src files to be detected, all include files in searched directories are included in the build potentially causing builds to fail.