There was an error while loading. Please reload this page.
1 parent 3b3f929 commit 16e0b5bCopy full SHA for 16e0b5b
1 file changed
src/java/CppBuild.java
@@ -3372,7 +3372,7 @@ static int gppMajorVersion(String gpp) {
3372
String out = new String(proc.getInputStream().readAllBytes());
3373
proc.waitFor();
3374
// Output: "g++ (GCC) 13.2.0 ..." or "Apple clang version 15.0.0 ..."
3375
- java.util.regex.Matcher m = java.util.regex.Pattern.compile("(\d+)\.\d+\.\d+").matcher(out);
+ java.util.regex.Matcher m = java.util.regex.Pattern.compile("(\\d+)\\.\\d+\\.\\d+").matcher(out);
3376
if (m.find()) return Integer.parseInt(m.group(1));
3377
} catch (Exception ignored) {}
3378
return 0;
0 commit comments