platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
234 stars 323 forks source link

build_src_filter has a bug that prevents it from filtering files in the PlatformIO system libraries. #325

Closed GPTKEY closed 8 months ago

GPTKEY commented 8 months ago

build_src_filter Fails when filtering library files on the system disc where PlatformIO is located. Is there any way to filter the files in the system library?

valeros commented 8 months ago

There is a multi-purpose special helper function AddBuildMiddleware that can be used in your case. Take a look at an example on this doc page.