Mercurial > octave
changeset 31737:bbc44e60120b stable
GitHub-CI (macos): Enable C++14 with GNU extensions (bug #63633).
* .github/workflows/make.yaml (macos): SUNDIALS >= 6.5.0 doesn't compile with
the default flags ("-std=gnu++11") determined by the configure script for Apple
Clang. Set CXX manually to include "-std=gnu++14" to enable building with it.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 16 Jan 2023 14:02:10 +0100 |
parents | 3dcdb05a2e68 |
children | a8bb150a7db1 cf0b1426539e |
files | .github/workflows/make.yaml |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/make.yaml Sun Jan 15 16:11:48 2023 +0100 +++ b/.github/workflows/make.yaml Mon Jan 16 14:02:10 2023 +0100 @@ -271,6 +271,8 @@ # https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/octave.rb # Amended with additional flags that seem to be needed. # Not all of those might be needed or be correct. + # SUNDIALS >= 6.5.0 doesn't compile with the default flags determined + # by the configure script. Set CXX manually to enable building with it. run: | echo $PATH echo which ccache @@ -286,6 +288,7 @@ gfortran --version mkdir .build cd .build && ../configure \ + CXX="$CXX -std=gnu++14" \ F77="ccache gfortran" \ CPPFLAGS="-I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt@5/include -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include $MY_CPPFLAGS" \ CXXFLAGS="-O2 -g" \