When developing a library in default directory structure, setting srcFilter
breaks build
#1735
Closed
1 task done
srcFilter
breaks build
#1735
If you’ve found a bug, please provide an information below.
Configuration
Operating system:
N/A
PlatformIO Version (
platformio --version
):Description of problem
When developing a library in default directory structure, setting
srcFilter
breaks build.By default,
$REPO_ROOT/src
is the source directory, orsrc_dir
. The code goes there. Everything is fine.When
srcFilter
is set to whatever value,src_dir
becomes$REPO_ROOT
even if the value is+<*>
.https://github.com/platformio/platformio-core/blob/develop/platformio/builder/tools/piolib.py#L592
Now
#include <Foo.h>
in the source must be modified to#include <src/Foo.h>
since platformio cannot find the header. Or, all the files must be moved to$REPO_ROOT
fromsrc
.Steps to Reproduce
src/Foo.h
andexamples/foo/src/main.c
<Foo.h>
inmain.c
srcFilter
in, say,extrascript.py
Actual Results
Expected Results
The above logic is documented if this is a feature.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
The text was updated successfully, but these errors were encountered: