mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix clang
This commit is contained in:
parent
fb870b6b72
commit
9be2139259
@ -165,7 +165,12 @@ int main() { return 0;}
|
|||||||
)
|
)
|
||||||
zephyr_dir = Path(build_dir / "zephyr")
|
zephyr_dir = Path(build_dir / "zephyr")
|
||||||
zephyr_dir.mkdir(exist_ok=True)
|
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(
|
subprocess.run(
|
||||||
["pio", "run", "-e", build_environment, "-d", build_dir], check=False
|
["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["defines"].update(extract_defines(command))
|
||||||
idedata["cxx_flags"].update(extract_cxx_flags(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
|
# Convert sets to lists for JSON serialization
|
||||||
idedata["includes"]["build"] = list(idedata["includes"]["build"])
|
idedata["includes"]["build"] = list(idedata["includes"]["build"])
|
||||||
idedata["defines"] = list(idedata["defines"])
|
idedata["defines"] = list(idedata["defines"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user