1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-01 00:08:15 +00:00

Move buildgen to after .cpp gen so that source files exist in build tree

This commit is contained in:
Katherine Whitlock 2025-01-17 17:59:14 -05:00
parent f7b72968ac
commit 48ba6f9f39

View File

@ -225,12 +225,12 @@ def generate_cpp_contents(config):
def write_cpp_file():
code_s = indent(CORE.cpp_main_section)
writer.write_cpp(code_s)
from esphome.build_gen import platformio
platformio.write_project()
code_s = indent(CORE.cpp_main_section)
writer.write_cpp(code_s)
return 0