Fix S3 linker error for Arduino/IDF projects

This commit is contained in:
Jason2866
2024-07-26 18:21:01 +02:00
committed by GitHub
parent 66b22fa25c
commit b2404e8b62
+13
View File
@@ -1534,6 +1534,19 @@ try:
except:
print("Warning! Couldn't find the main linker script in the CMake code model.")
# remove circle linker commands
try:
link_args_index = link_args["LINKFLAGS"].index("-Wl,--start-group")
link_args["LINKFLAGS"].pop(link_args_index)
except:
pass
try:
link_args_index = link_args["LINKFLAGS"].index("-Wl,--end-group")
link_args["LINKFLAGS"].pop(link_args_index)
except:
pass
#
# Process project sources
#