1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Improve MinGW detection for toolchain availability filtering

Use the same logic to locate a MinGW toolchain when filtering toolchains
for selection in the project wizard as we do during project build.
This commit is contained in:
John Dallaway 2025-05-07 15:43:20 +01:00
parent 6c53fd8bc3
commit 0f47c669c1

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012, 2024 Andrew Gvozdev and others.
* Copyright (c) 2012, 2025 Andrew Gvozdev and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -371,7 +371,7 @@ public class MinGW {
}
/**
* Check if MinGW is available in the path.
* Check if MinGW is available in the specified path or via known installation hints.
*
* @param envPath
* - list of directories to search for MinGW separated by path
@ -380,7 +380,7 @@ public class MinGW {
* @return {@code true} if MinGW is available, {@code false} otherwise.
*/
public static boolean isAvailable(String envPath) {
return isWindowsPlatform && findMingwInPath(envPath) != null;
return isWindowsPlatform && findMinGWRoot(envPath, null) != null;
}
/**