Skip to content

Commit 9c7f8b8

Browse files
committed
Set lib_archive to False as default
1 parent a13d5f5 commit 9c7f8b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
env = DefaultEnvironment()
2626
platform = env.PioPlatform()
27+
projectconfig = env.GetProjectConfig()
2728

2829
#
2930
# Helpers
@@ -305,6 +306,9 @@ def __fetch_fs_size(target, source, env):
305306
PROGSUFFIX=".elf"
306307
)
307308

309+
# Set lib_archive to False for all envs to avoid issues with weak defs in framework and libs
310+
projectconfig.set("env:" + env["PIOENV"], "lib_archive", "False")
311+
308312
# Allow user to override via pre:script
309313
if env.get("PROGNAME", "program") == "program":
310314
env.Replace(PROGNAME="firmware")

0 commit comments

Comments
 (0)