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:
@@ -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])
|
||||
|
||||
|
Reference in New Issue
Block a user