From ab656f2d843559ecb562b0124fe150e3755a1138 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 12 Jan 2021 17:33:34 +0100
Subject: [PATCH] macOS/use_dll: upgrade to gcc-10 compiler

---
 src/ModelTree.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index d7fe7e97..6169fb70 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -2036,16 +2036,16 @@ ModelTree::compileMEX(const string &basename, const string &funcname, const stri
           if (_NSGetExecutablePath(dynare_m_path, &size) == 0)
             {
               string str = dynare_m_path;
-              gcc_relative_path = str.substr(0, str.find_last_of("/")) + "/../../.brew/bin/gcc-9";
+              gcc_relative_path = str.substr(0, str.find_last_of("/")) + "/../../.brew/bin/gcc-10";
             }
 
           if (filesystem::exists(gcc_relative_path))
             compiler = gcc_relative_path;
-          else if (filesystem::exists("/usr/local/bin/gcc-9"))
-            compiler = "/usr/local/bin/gcc-9";
+          else if (filesystem::exists("/usr/local/bin/gcc-10"))
+            compiler = "/usr/local/bin/gcc-10";
           else
             {
-              cerr << "ERROR: You must install gcc-9 on your system before using the `use_dll` option of Dynare. "
+              cerr << "ERROR: You must install gcc-10 on your system before using the `use_dll` option of Dynare. "
                    << "You can do this via the Dynare installation package." << endl;
               exit(EXIT_FAILURE);
             }
-- 
GitLab