mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +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:
parent
6c53fd8bc3
commit
2452a04902
1 changed files with 3 additions and 3 deletions
|
@ -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
|
* This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License 2.0
|
* 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
|
* @param envPath
|
||||||
* - list of directories to search for MinGW separated by path
|
* - 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.
|
* @return {@code true} if MinGW is available, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public static boolean isAvailable(String envPath) {
|
public static boolean isAvailable(String envPath) {
|
||||||
return isWindowsPlatform && findMingwInPath(envPath) != null;
|
return isWindowsPlatform && findMinGWRoot(envPath, null) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue