forked from platformio/platformio-core
Grant libs with high priority for C Preprocessor when scan includes
This commit is contained in:
@ -227,11 +227,17 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
|
|||||||
# end internal prototypes
|
# end internal prototypes
|
||||||
|
|
||||||
deplibs = _get_dep_libs(src_dir)
|
deplibs = _get_dep_libs(src_dir)
|
||||||
env.Append(CPPPATH=[join("$BUILD_DIR", l) for (l, _) in deplibs])
|
env.Prepend(
|
||||||
|
CPPPATH=[join("$BUILD_DIR", l) for (l, _) in deplibs]
|
||||||
|
)
|
||||||
|
|
||||||
# add automatically "utility" dir from the lib (Arduino issue)
|
# add automatically "utility" dir from the lib (Arduino issue)
|
||||||
env.Append(CPPPATH=[join("$BUILD_DIR", l, "utility") for (l, ld) in deplibs
|
env.Prepend(
|
||||||
if isdir(join(ld, "utility"))])
|
CPPPATH=[
|
||||||
|
join("$BUILD_DIR", l, "utility") for (l, ld) in deplibs
|
||||||
|
if isdir(join(ld, "utility"))
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
libs = []
|
libs = []
|
||||||
for (libname, inc_dir) in deplibs:
|
for (libname, inc_dir) in deplibs:
|
||||||
|
Reference in New Issue
Block a user