From e6e25a5c87682c8bf3d6f42524ff8bfbc909bc8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 24 Jun 2021 15:16:55 +0200 Subject: [PATCH] macOS: fix detection of GCC installed by Dynare package Since the preprocessor has moved, the relative path of the local Homebrew needs to be adjusted. --- src/ModelTree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModelTree.cc b/src/ModelTree.cc index a20f3d7f..aeafc23a 100644 --- a/src/ModelTree.cc +++ b/src/ModelTree.cc @@ -1957,7 +1957,7 @@ 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-11"; + gcc_relative_path = str.substr(0, str.find_last_of("/")) + "/../.brew/bin/gcc-11"; } if (filesystem::exists(gcc_relative_path)) -- GitLab