Kaynağa Gözat

🔨 Fix g++ locator for CI

Scott Lahteine 2 yıl önce
ebeveyn
işleme
84b9de9a19

+ 3
- 5
buildroot/share/PlatformIO/scripts/preprocessor.py Dosyayı Görüntüle

@@ -67,11 +67,9 @@ def search_compiler(env):
67 67
 		with open(GCC_PATH_CACHE, 'r') as f:
68 68
 			return f.read()
69 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
-
70
+	# Find the current platform compiler by searching the $PATH
71
+	# which will be in a platformio toolchain bin folder
72
+	path_regex = re.escape(env['PROJECT_PACKAGES_DIR'])
75 73
 	gcc = "g++"
76 74
 	if env['PLATFORM'] == 'win32':
77 75
 		path_separator = ';'

Loading…
İptal
Kaydet