macOS: bump to GCC 12 (for compilation and for use_dll)

master
Sébastien Villemot 2022-09-06 11:53:40 +02:00
parent fc4c9a73c9
commit 482ec5fb67
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ build_macos_x86_64:
- macOS
script:
- autoreconf -si
- './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'
- './configure CC=gcc-12 CXX=g++-12 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

View File

@ -1601,8 +1601,8 @@ ModelTree::matlab_arch(const string &mexext)
string
ModelTree::findGccOnMacos(const string &mexext)
{
const string macos_gcc_version{"11"}; // doc/manual/source/installation-and-configuration.rst
// should be updated when this is changed
const string macos_gcc_version {"12"}; // doc/manual/source/installation-and-configuration.rst
// should be updated when this is changed
char dynare_preprocessor_path[PATH_MAX];
uint32_t size = PATH_MAX;
string local_gcc_path;