libretiny: log nm failure reason instead of silently swallowing

This commit is contained in:
J. Nick Koston
2026-04-15 16:09:55 -10:00
parent 384f8f6870
commit 1aeb04b4dc
@@ -123,7 +123,8 @@ def _post_link(target, source, env):
out = subprocess.check_output(
[nm, "--defined-only", "--demangle", elf], text=True
)
except (OSError, subprocess.CalledProcessError):
except (OSError, subprocess.CalledProcessError) as exc:
print("ESPHome: IRAM_ATTR summary unavailable (nm failed: {})".format(exc))
return
start = end = None
fallback = []