1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

[CI] Add/update some system include paths (#7831)

This commit is contained in:
Keith Burzinski
2024-11-25 17:41:27 -06:00
committed by GitHub
parent 6ee02c47c2
commit 4fbf41472a
2 changed files with 11 additions and 6 deletions

View File

@@ -100,10 +100,13 @@ def clang_options(idedata):
# add library include directories using -isystem to suppress their errors
for directory in list(idedata["includes"]["build"]):
# skip our own directories, we add those later
if (
not directory.startswith(f"{root_path}/")
or directory.startswith(f"{root_path}/.pio/")
or directory.startswith(f"{root_path}/managed_components/")
if not directory.startswith(f"{root_path}") or directory.startswith(
(
f"{root_path}/.pio",
f"{root_path}/.platformio",
f"{root_path}/.temp",
f"{root_path}/managed_components",
)
):
cmd.extend(["-isystem", directory])