build_src_flags
impacts not only src_dir
but also dependencies?
#4667
Labels
build_src_flags
impacts not only src_dir
but also dependencies?
#4667
PlatformIO Version (
platformio --version
):PlatformIO Core, version 6.1.7
Description of problem
According to the docs
build_src_flags
"will be applied only for the project source files in the src_dir directory".The problem is, it also applies to dependencies (external libraries) while… running tests :P
Steps to Reproduce
platform: native
lib_deps = fabiobatsilva/ArduinoFake@0.3.1
build_src_flags = -Wpedantic
pio test
Actual Results
Expected Results
Clean test results, without the issues from external
ArduinoFake
library.If I remove
build_src_flags = -Wpedantic
, the issues do not appear, so clearlybuild_src_flags
impacts code outside of thesrc
dir…build_src_flags
should not impact code from external libraries.The text was updated successfully, but these errors were encountered: