Skip to content

Commit 8409b11

Browse files
committed
Windows: prefer WinLibs portable gcc DLLs over bundled for runtime
1 parent b2e8ea1 commit 8409b11

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

mode/CppMode.jar

-3 Bytes
Binary file not shown.

src/java/CppBuild.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,12 @@ private void checkWindowsDLLs(RunnerListener listener, File binary) throws Excep
663663
File binaryDir = new File(binary.getParent());
664664
binaryDir.mkdirs();
665665

666-
// DLL search dirs: bundled first, then WinLibs portable gcc, then MSYS2
666+
// DLL search dirs: WinLibs portable gcc first (exact match for compiler used),
667+
// then bundled, then MSYS2
667668
java.util.List<File> dllSources = new java.util.ArrayList<>();
668-
dllSources.add(bundledDir);
669669
File portableGccBin = InstallWizard.getPortableGccDir();
670670
if (portableGccBin.exists()) dllSources.add(portableGccBin);
671+
dllSources.add(bundledDir);
671672
for (String msysDir : new String[]{"C:\\msys64\\mingw64\\bin","C:\\msys2\\mingw64\\bin"})
672673
dllSources.add(new File(msysDir));
673674

0 commit comments

Comments
 (0)