Browse Source

🔨 Fix g++ locator for CI

FB4S_WIFI
Scott Lahteine 3 years ago
parent
commit
d5f472a6cf
  1. 8
      buildroot/share/PlatformIO/scripts/preprocessor.py

8
buildroot/share/PlatformIO/scripts/preprocessor.py

@ -67,11 +67,9 @@ def search_compiler(env):
with open(GCC_PATH_CACHE, 'r') as f: with open(GCC_PATH_CACHE, 'r') as f:
return f.read() return f.read()
# Find a platform compiler by searching $PATH items # Find the current platform compiler by searching the $PATH
# A native target will search all PATH bin folders. # which will be in a platformio toolchain bin folder
# Others look only within $HOME/.platformio. path_regex = re.escape(env['PROJECT_PACKAGES_DIR'])
path_regex = "" if env.GetProjectOption('platform') == 'native' else re.escape(env['PROJECT_PACKAGES_DIR'])
gcc = "g++" gcc = "g++"
if env['PLATFORM'] == 'win32': if env['PLATFORM'] == 'win32':
path_separator = ';' path_separator = ';'

Loading…
Cancel
Save