diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index f3fb9cd9190478cab439dd107959c6aa7b14acdd..fc863761a06edb3b895fc4cba3467009707c481a 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1674,7 +1674,7 @@ ModelTree::findCompilerOnMacos(const string& mexext)
      Apple’s clang is located both in /usr/bin/gcc and /usr/bin/clang, it
      automatically selects x86_64 or arm64 depending on the compile-time
      environment. */
-  const string macos_gcc_version {"14"};
+  const string macos_gcc_version {"15"};
 
   if (filesystem::path global_gcc_path {"/usr/local/bin/gcc-" + macos_gcc_version};
       exists(global_gcc_path) && mexext == "mexmaci64")