Browse Source

🔨 Fix g++ locator for CI

Scott Lahteine 2 years ago
parent
commit
84b9de9a19
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      buildroot/share/PlatformIO/scripts/preprocessor.py

+ 3
- 5
buildroot/share/PlatformIO/scripts/preprocessor.py View File

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

Loading…
Cancel
Save