Skip to content

Commit

Permalink
🔨 Fix pioarduino path check for xtensa-esp32 (#27693)
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github authored Feb 19, 2025
1 parent 0518737 commit 89def45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildroot/share/PlatformIO/scripts/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 89def45

Please sign in to comment.