From 94bd6d52e9d7b04d99e3754ca004f4bd3acad29f Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:50:25 +1300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20ESP32=20build=20(for=20xte?= =?UTF-8?q?nsa32)=20(#27561)?= 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 d409f32f27..5355fa4e92 100644 --- a/buildroot/share/PlatformIO/scripts/preprocessor.py +++ b/buildroot/share/PlatformIO/scripts/preprocessor.py @@ -86,8 +86,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) - if not gpath.stem.endswith('-elf-g++'): + # Skip '*-elf-g++' (crosstool-NG) except for xtensa32 + if not "xtensa32" not in str(gpath) and gpath.stem.endswith('-elf-g++'): gccpath = str(gpath.resolve()) break