Skip to content

Commit ff6ec88

Browse files
committed
Properly handle precompiled static archives located outside IDF project root
Resolves #1230
1 parent f6ec392 commit ff6ec88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
IDF_ENV_VERSION = "1.0.0"
6464
FRAMEWORK_DIR = platform.get_package_dir("framework-espidf")
6565
TOOLCHAIN_DIR = platform.get_package_dir(
66-
"toolchain-%s" % ("riscv32-esp" if mcu in ("esp32c3","esp32c6") else ("xtensa-%s" % mcu))
66+
"toolchain-%s" % ("riscv32-esp" if mcu in ("esp32c3", "esp32c6") else ("xtensa-%s" % mcu))
6767
)
6868

6969

@@ -373,8 +373,8 @@ def _add_archive(archive_path, link_args):
373373
elif fragment.endswith(".a"):
374374
archive_path = fragment
375375
# process static archives
376-
if archive_path.startswith(FRAMEWORK_DIR):
377-
# In case of precompiled archives from framework package
376+
if os.path.isabs(archive_path):
377+
# In case of precompiled archives
378378
_add_archive(archive_path, link_args)
379379
else:
380380
# In case of archives within project

0 commit comments

Comments
 (0)