Skip to content

Commit 0f47c66

Browse files
committed
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.
1 parent 6c53fd8 commit 0f47c66

File tree

1 file changed

+3
-3
lines changed
  • core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core

1 file changed

+3
-3
lines changed

core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/MinGW.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2012, 2024 Andrew Gvozdev and others.
2+
* Copyright (c) 2012, 2025 Andrew Gvozdev and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -371,7 +371,7 @@ public static String getMSysHome() {
371371
}
372372

373373
/**
374-
* Check if MinGW is available in the path.
374+
* Check if MinGW is available in the specified path or via known installation hints.
375375
*
376376
* @param envPath
377377
* - list of directories to search for MinGW separated by path
@@ -380,7 +380,7 @@ public static String getMSysHome() {
380380
* @return {@code true} if MinGW is available, {@code false} otherwise.
381381
*/
382382
public static boolean isAvailable(String envPath) {
383-
return isWindowsPlatform && findMingwInPath(envPath) != null;
383+
return isWindowsPlatform && findMinGWRoot(envPath, null) != null;
384384
}
385385

386386
/**

0 commit comments

Comments
 (0)