From f296a86675ed675400a7046f7da11f9ac314e89e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 15 Apr 2026 16:10:29 -1000 Subject: [PATCH] libretiny: drop unnecessary CC-derived nm fallback --- esphome/components/libretiny/patch_linker.py.script | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esphome/components/libretiny/patch_linker.py.script b/esphome/components/libretiny/patch_linker.py.script index f2da6c9161..c490b10e9b 100644 --- a/esphome/components/libretiny/patch_linker.py.script +++ b/esphome/components/libretiny/patch_linker.py.script @@ -114,11 +114,7 @@ def _post_link(target, source, env): elf = env.subst("$BUILD_DIR/${PROGNAME}.elf") if not os.path.isfile(elf): return - # $NM may be unset; derive from $CC (e.g. arm-none-eabi-gcc -> arm-none-eabi-nm). nm = env.subst("$NM") - if not nm: - cc = env.subst("$CC") - nm = cc.replace("-gcc", "-nm") if cc.endswith("-gcc") else "nm" try: out = subprocess.check_output( [nm, "--defined-only", "--demangle", elf], text=True