macOS/use_dll: upgrade to gcc-10 compiler

issue#70
Sébastien Villemot 2021-01-12 17:33:34 +01:00
parent a0d12310cb
commit ab656f2d84
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 4 additions and 4 deletions

View File

@ -2036,16 +2036,16 @@ ModelTree::compileMEX(const string &basename, const string &funcname, const stri
if (_NSGetExecutablePath(dynare_m_path, &size) == 0) if (_NSGetExecutablePath(dynare_m_path, &size) == 0)
{ {
string str = dynare_m_path; 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)) if (filesystem::exists(gcc_relative_path))
compiler = gcc_relative_path; compiler = gcc_relative_path;
else if (filesystem::exists("/usr/local/bin/gcc-9")) else if (filesystem::exists("/usr/local/bin/gcc-10"))
compiler = "/usr/local/bin/gcc-9"; compiler = "/usr/local/bin/gcc-10";
else 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; << "You can do this via the Dynare installation package." << endl;
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }