From 8b81474a2e124bbd508468fd8a7ab7d11213be07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemia=20=28Scylla=29?= <stepan@dynare.org>
Date: Thu, 20 Dec 2018 14:33:57 +0100
Subject: [PATCH] On macOS use gcc-7 from homebrew instead of gcc-clang.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

To install this version of gcc:

~$ brew install gcc@7

Does not seem to work with gcc-8 (missing headers…).
---
 src/ModelTree.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 0f966839..71e1a285 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -2236,6 +2236,7 @@ ModelTree::compileDll(const string &basename, const string &static_or_dynamic, c
       else
         {
           // macOS
+          compiler = "/usr/local/bin/gcc-7";
           string archs = (mexext == "maci" ? "i386" : "x86_64");
           flags << " -fno-common -arch " << archs << " -mmacosx-version-min=10.7 -Wl,-twolevel_namespace -undefined error -bundle";
           libs += " -lm -lstdc++";
-- 
GitLab