We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0424e26 commit d8ceac7Copy full SHA for d8ceac7
buildroot/share/PlatformIO/scripts/preprocessor.py
@@ -67,11 +67,9 @@ def search_compiler(env):
67
with open(GCC_PATH_CACHE, 'r') as f:
68
return f.read()
69
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
-
+ # 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'])
75
gcc = "g++"
76
if env['PLATFORM'] == 'win32':
77
path_separator = ';'
0 commit comments