From 89def456e8b567ccb6f3c1aeb6c152151e3ebbdb Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Wed, 19 Feb 2025 09:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20pioarduino=20path=20check?= =?UTF-8?q?=20for=20xtensa-esp32=20(#27693)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/share/PlatformIO/scripts/preprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildroot/share/PlatformIO/scripts/preprocessor.py b/buildroot/share/PlatformIO/scripts/preprocessor.py index 4f24458d96..efc3a6261e 100644 --- a/buildroot/share/PlatformIO/scripts/preprocessor.py +++ b/buildroot/share/PlatformIO/scripts/preprocessor.py @@ -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