1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00
This commit is contained in:
J. Nick Koston
2025-10-17 18:41:12 -10:00
parent f9807db08a
commit 4f4da1de22
3 changed files with 28 additions and 16 deletions

View File

@@ -378,17 +378,19 @@ class IDEData:
@property
def objdump_path(self) -> str:
# replace gcc at end with objdump
path = self.cc_path
return (
f"{self.cc_path[:-7]}objdump.exe"
if self.cc_path.endswith(".exe")
else f"{self.cc_path[:-3]}objdump"
f"{path[:-7]}objdump.exe"
if path.endswith(".exe")
else f"{path[:-3]}objdump"
)
@property
def readelf_path(self) -> str:
# replace gcc at end with readelf
path = self.cc_path
return (
f"{self.cc_path[:-7]}readelf.exe"
if self.cc_path.endswith(".exe")
else f"{self.cc_path[:-3]}readelf"
f"{path[:-7]}readelf.exe"
if path.endswith(".exe")
else f"{path[:-3]}readelf"
)