Properly handle precompiled static archives located outside IDF project root

Resolves #1230
This commit is contained in:
valeros
2023-11-13 13:58:24 +02:00
parent f6ec3926f9
commit ff6ec884d6
+2 -2
View File
@@ -373,8 +373,8 @@ def extract_link_args(target_config):
elif fragment.endswith(".a"):
archive_path = fragment
# process static archives
if archive_path.startswith(FRAMEWORK_DIR):
# In case of precompiled archives from framework package
if os.path.isabs(archive_path):
# In case of precompiled archives
_add_archive(archive_path, link_args)
else:
# In case of archives within project