Skip to content

Commit

Permalink
ci/centos: use C++11 standard compile mode (#2274)
Browse files Browse the repository at this point in the history
older versions of gcc support, but does not default to C++11
  • Loading branch information
nilason committed Mar 25, 2022
1 parent 3587128 commit 34d44d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export INSTALL_PREFIX=$1
# Old versions of GCC on CentOS default to C89 although are C11 capable
# This causes compilation to fail on >C89 code
export CFLAGS="-O2 -std=gnu11"
export CXXFLAGS="-std=gnu++11"

./configure \
--prefix="$INSTALL_PREFIX/" \
Expand Down

0 comments on commit 34d44d6

Please sign in to comment.