mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 04:25:15 +01:00
fix clang
This commit is contained in:
parent
fb870b6b72
commit
9be2139259
1 changed files with 14 additions and 1 deletions
|
@ -165,7 +165,12 @@ int main() { return 0;}
|
|||
)
|
||||
zephyr_dir = Path(build_dir / "zephyr")
|
||||
zephyr_dir.mkdir(exist_ok=True)
|
||||
Path(zephyr_dir / "prj.conf").write_text("", encoding="utf-8")
|
||||
Path(zephyr_dir / "prj.conf").write_text(
|
||||
"""
|
||||
CONFIG_NEWLIB_LIBC=y
|
||||
""",
|
||||
encoding="utf-8",
|
||||
)
|
||||
subprocess.run(
|
||||
["pio", "run", "-e", build_environment, "-d", build_dir], check=False
|
||||
)
|
||||
|
@ -240,6 +245,14 @@ int main() { return 0;}
|
|||
idedata["defines"].update(extract_defines(command))
|
||||
idedata["cxx_flags"].update(extract_cxx_flags(command))
|
||||
|
||||
idedata["defines"].update(
|
||||
[
|
||||
"pthread_attr_t=pthread_attr",
|
||||
"pthread_mutexattr_t=pthread_mutexattr",
|
||||
"pthread_condattr_t=pthread_condattr",
|
||||
]
|
||||
)
|
||||
|
||||
# Convert sets to lists for JSON serialization
|
||||
idedata["includes"]["build"] = list(idedata["includes"]["build"])
|
||||
idedata["defines"] = list(idedata["defines"])
|
||||
|
|
Loading…
Add table
Reference in a new issue