Skip to content

Commit 312a96e

Browse files
committed
Add an explicit dependency on checkprogsize target for the final binary
Resolves platformio/platformio-core#3858. This way the final binary won't be generated if the application exceeds the amount of available memory.
1 parent 2e5a2c4 commit 312a96e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builder/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def get_esptoolpy_reset_flags(resetmethod):
246246
else:
247247
target_firm = env.ElfToBin(
248248
join("$BUILD_DIR", "${PROGNAME}"), target_elf)
249+
env.Depends(target_firm, "checkprogsize")
249250

250251
env.AddPlatformTarget("buildfs", target_firm, None, "Build Filesystem Image")
251252
AlwaysBuild(env.Alias("nobuild", target_firm))

0 commit comments

Comments
 (0)