macOS: bump to GCC 11 (for compilation and for use_dll)
parent
e80215e377
commit
1c3e6f89af
|
@ -83,7 +83,7 @@ build_macos_x86_64:
|
|||
- macOS
|
||||
script:
|
||||
- autoreconf -si
|
||||
- './configure CC=gcc-10 CXX=g++-10 LDFLAGS="-static-libgcc -s" LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison'
|
||||
- './configure CC=gcc-11 CXX=g++-11 LDFLAGS="-static-libgcc -s" LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison'
|
||||
- make -j$(nproc)
|
||||
- mkdir -p $CI_COMMIT_SHA/macos-x86_64
|
||||
- tar -caf $CI_COMMIT_SHA/macos-x86_64/dynare-preprocessor.tar.gz -C src dynare-preprocessor
|
||||
|
|
|
@ -1957,16 +1957,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-10";
|
||||
gcc_relative_path = str.substr(0, str.find_last_of("/")) + "/../../.brew/bin/gcc-11";
|
||||
}
|
||||
|
||||
if (filesystem::exists(gcc_relative_path))
|
||||
compiler = gcc_relative_path;
|
||||
else if (filesystem::exists("/usr/local/bin/gcc-10"))
|
||||
compiler = "/usr/local/bin/gcc-10";
|
||||
else if (filesystem::exists("/usr/local/bin/gcc-11"))
|
||||
compiler = "/usr/local/bin/gcc-11";
|
||||
else
|
||||
{
|
||||
cerr << "ERROR: You must install gcc-10 on your system before using the `use_dll` option of Dynare. "
|
||||
cerr << "ERROR: You must install gcc-11 on your system before using the `use_dll` option of Dynare. "
|
||||
<< "You can do this via the Dynare installation package." << endl;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue