From 0de27e8dab9c4190be17ea8642cf301844c8043a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 7 Jun 2023 10:27:20 +0200
Subject: [PATCH] macOS: bump to GCC 13 (for compilation and for use_dll)

---
 .gitlab-ci.yml   | 2 +-
 src/ModelTree.cc | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c9ad67ea..c31f4843 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -59,7 +59,7 @@ build_macos_x86_64:
     - macOS
   script:
     - autoreconf -si
-    - arch -x86_64 ./configure CC=gcc-12 CXX=g++-12 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
+    - arch -x86_64 ./configure CC=gcc-13 CXX=g++-13 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
     - arch -x86_64 make -j$(sysctl -n hw.ncpu)
   artifacts:
     paths:
diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 72320d52..36e9ad2a 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1616,8 +1616,7 @@ ModelTree::matlab_arch(const string &mexext)
 filesystem::path
 ModelTree::findGccOnMacos(const string &mexext)
 {
-  const string macos_gcc_version {"12"}; // doc/manual/source/installation-and-configuration.rst
-                                         // should be updated when this is changed
+  const string macos_gcc_version {"13"};
   char dynare_preprocessor_path[PATH_MAX];
   uint32_t size = PATH_MAX;
   filesystem::path local_gcc_path;
-- 
GitLab