Explorar o código

ci/centos: use C++11 standard compile mode (#2274)

older versions of gcc support, but does not default to C++11
Nicklas Larsson %!s(int64=3) %!d(string=hai) anos
pai
achega
34d44d6c11
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      .github/workflows/build_centos.sh

+ 1 - 0
.github/workflows/build_centos.sh

@@ -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/" \