update from 2.0.x

This commit is contained in:
Sergey
2022-05-16 12:42:50 +03:00
parent 160f2c8da8
commit af4f55436b
91 changed files with 2155 additions and 320 deletions

View File

@@ -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 = ';'