Skip to content

Commit 5ea1e16

Browse files
committed
Fix: remove listener call from buildCommand context
1 parent 854f005 commit 5ea1e16

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

mode/CppMode.jar

-73 Bytes
Binary file not shown.

src/java/CppBuild.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,10 +3066,7 @@ private List<String> buildCommand(String gpp, File src, File bin, boolean win, b
30663066
long freeRam = (long) getFreeMemory.invoke(osmx);
30673067
if (freeRam < 3L * 1024 * 1024 * 1024) lowMemory = true; // < 3GB free RAM
30683068
} catch (Exception ignored) {}
3069-
if (lowMemory) {
3070-
needsPch = false;
3071-
listener.statusNotice("Low memory detected — skipping PCH cache (compile may be slower)");
3072-
}
3069+
if (lowMemory) needsPch = false;
30733070
try {
30743071
String osName = System.getProperty("os.name","").toLowerCase();
30753072
String cacheSubDir = osName.contains("win") ? "cache/windows-x64"

0 commit comments

Comments
 (0)