mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
Remove picolibc dir from clangtidy
This commit is contained in:
parent
daae3a93ab
commit
daf241b3f6
@ -105,7 +105,7 @@ def clang_options(idedata):
|
|||||||
# idedata contains include directories for all toolchains of this platform, only use those from the one in use
|
# idedata contains include directories for all toolchains of this platform, only use those from the one in use
|
||||||
toolchain_dir = os.path.normpath(f"{idedata['cxx_path']}/../../")
|
toolchain_dir = os.path.normpath(f"{idedata['cxx_path']}/../../")
|
||||||
for directory in idedata["includes"]["toolchain"]:
|
for directory in idedata["includes"]["toolchain"]:
|
||||||
if directory.startswith(toolchain_dir):
|
if directory.startswith(toolchain_dir) and "picolibc" not in directory:
|
||||||
cmd.extend(["-isystem", directory])
|
cmd.extend(["-isystem", directory])
|
||||||
|
|
||||||
# add library include directories using -isystem to suppress their errors
|
# add library include directories using -isystem to suppress their errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user