Skip to content

Commit b2404e8

Browse files
authored
Fix S3 linker error for Arduino/IDF projects
1 parent 66b22fa commit b2404e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

builder/frameworks/espidf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,19 @@ def get_python_exe():
15341534
except:
15351535
print("Warning! Couldn't find the main linker script in the CMake code model.")
15361536

1537+
# remove circle linker commands
1538+
try:
1539+
link_args_index = link_args["LINKFLAGS"].index("-Wl,--start-group")
1540+
link_args["LINKFLAGS"].pop(link_args_index)
1541+
except:
1542+
pass
1543+
1544+
try:
1545+
link_args_index = link_args["LINKFLAGS"].index("-Wl,--end-group")
1546+
link_args["LINKFLAGS"].pop(link_args_index)
1547+
except:
1548+
pass
1549+
15371550
#
15381551
# Process project sources
15391552
#

0 commit comments

Comments
 (0)