Skip to content

Commit

Permalink
🔨 Fix g++ locator for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 12, 2022
1 parent 30eb2aa commit 84b9de9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions buildroot/share/PlatformIO/scripts/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ def search_compiler(env):
with open(GCC_PATH_CACHE, 'r') as f:
return f.read()

# Find a platform compiler by searching $PATH items
# A native target will search all PATH bin folders.
# Others look only within $HOME/.platformio.
path_regex = "" if env.GetProjectOption('platform') == 'native' else re.escape(env['PROJECT_PACKAGES_DIR'])

# Find the current platform compiler by searching the $PATH
# which will be in a platformio toolchain bin folder
path_regex = re.escape(env['PROJECT_PACKAGES_DIR'])
gcc = "g++"
if env['PLATFORM'] == 'win32':
path_separator = ';'
Expand Down

0 comments on commit 84b9de9

Please sign in to comment.