diff --git a/esphome/build_gen/build_tool.py b/esphome/build_gen/build_tool.py index a408b1586b..00aa1ec69d 100644 --- a/esphome/build_gen/build_tool.py +++ b/esphome/build_gen/build_tool.py @@ -4,7 +4,7 @@ Plain script (not ``python -m``): it runs from ninja with whatever Python started esphome and must not depend on the package being importable. Subcommands: - ar remove stale archive, then ``ar rc`` + ar remove stale archive, then ``ar rcs`` copy copy a file The ar rspfile carries one object path per line (the generating rule must @@ -35,7 +35,7 @@ def _read_rspfile(rspfile: str) -> list[str]: def _run_ar(ar: str, archive: str, rspfile: str) -> int: - # Remove first: ``ar rc`` replaces members but never drops ones whose + # Remove first: ``ar rcs`` replaces members but never drops ones whose # source was removed from the build, which would leak stale objects. Path(archive).unlink(missing_ok=True) objects = _read_rspfile(rspfile)