Skip to content

Commit

Permalink
Skip unnecessary link flags
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Jan 13, 2025
1 parent 5a74961 commit e972aab
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,15 @@ def get_python_exe():
# Extra flags which need to be explicitly specified in LINKFLAGS section because SCons
# cannot merge them correctly
extra_flags = filter_args(
link_args["LINKFLAGS"], ["-T", "-u", "-Wl,--start-group", "-Wl,--end-group"]
link_args["LINKFLAGS"],
[
"-T",
"-u",
"-Wl,--start-group",
"-Wl,--end-group",
"-Wl,--whole-archive",
"-Wl,--no-whole-archive",
],
)
link_args["LINKFLAGS"] = sorted(list(set(link_args["LINKFLAGS"]) - set(extra_flags)))

Expand Down

0 comments on commit e972aab

Please sign in to comment.