Skip to content

Commit e972aab

Browse files
committed
Skip unnecessary link flags
1 parent 5a74961 commit e972aab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,15 @@ def get_python_exe():
16461646
# Extra flags which need to be explicitly specified in LINKFLAGS section because SCons
16471647
# cannot merge them correctly
16481648
extra_flags = filter_args(
1649-
link_args["LINKFLAGS"], ["-T", "-u", "-Wl,--start-group", "-Wl,--end-group"]
1649+
link_args["LINKFLAGS"],
1650+
[
1651+
"-T",
1652+
"-u",
1653+
"-Wl,--start-group",
1654+
"-Wl,--end-group",
1655+
"-Wl,--whole-archive",
1656+
"-Wl,--no-whole-archive",
1657+
],
16501658
)
16511659
link_args["LINKFLAGS"] = sorted(list(set(link_args["LINKFLAGS"]) - set(extra_flags)))
16521660

0 commit comments

Comments
 (0)