🔨 Fix pioarduino path check for xtensa-esp32 (#27693)

This commit is contained in:
Luc 2025-02-19 09:33:54 +08:00 committed by GitHub
parent 0518737119
commit 89def456e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,8 +87,8 @@ def search_compiler(env):
# Use any item in $PATH corresponding to a platformio toolchain bin folder
if ppath.match(env['PROJECT_PACKAGES_DIR'] + "/**/bin"):
for gpath in ppath.glob(gcc_exe):
# Skip '*-elf-g++' (crosstool-NG) except for xtensa32
if not gpath.stem.endswith('-elf-g++') or "xtensa32" in str(gpath):
# Skip '*-elf-g++' (crosstool-NG) except for xtensa32/xtensa-esp32
if not gpath.stem.endswith('-elf-g++') or "xtensa" in str(gpath):
gccpath = str(gpath.resolve())
break