Skip to content

Commit d8ceac7

Browse files
thinkyheadtomek2k1
authored andcommitted
🔨 Fix g++ locator for CI
1 parent 0424e26 commit d8ceac7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

buildroot/share/PlatformIO/scripts/preprocessor.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ def search_compiler(env):
6767
with open(GCC_PATH_CACHE, 'r') as f:
6868
return f.read()
6969

70-
# Find a platform compiler by searching $PATH items
71-
# A native target will search all PATH bin folders.
72-
# Others look only within $HOME/.platformio.
73-
path_regex = "" if env.GetProjectOption('platform') == 'native' else re.escape(env['PROJECT_PACKAGES_DIR'])
74-
70+
# Find the current platform compiler by searching the $PATH
71+
# which will be in a platformio toolchain bin folder
72+
path_regex = re.escape(env['PROJECT_PACKAGES_DIR'])
7573
gcc = "g++"
7674
if env['PLATFORM'] == 'win32':
7775
path_separator = ';'

0 commit comments

Comments
 (0)