Enhanced build script to use c++17 with EnableCXXMode for Qt6

This commit is contained in:
Stephan Witt 2022-07-30 15:04:37 +02:00
parent d79637a88e
commit e873ac3c90

View File

@ -285,7 +285,6 @@ while [ $# -gt 0 ]; do
shift shift
;; ;;
--enable-cxx11|--enable-cxx-mode=*) --enable-cxx11|--enable-cxx-mode=*)
LyXConfigureOptions="${LyXConfigureOptions} ${1}"
EnableCXXMode="${1}" EnableCXXMode="${1}"
shift shift
;; ;;
@ -423,11 +422,13 @@ case "${EnableCXXMode}" in
export CC=cc export CC=cc
export CXX="c++ -stdlib=libc++" export CXX="c++ -stdlib=libc++"
export CXXFLAGS=-std=c++11 export CXXFLAGS=-std=c++11
LyXConfigureOptions="${LyXConfigureOptions} --enable-cxx-mode=11"
;; ;;
--enable-cxx-mode=17) --enable-cxx-mode=17)
export CC=cc export CC=cc
export CXX="c++ -stdlib=libc++" export CXX="c++ -stdlib=libc++"
export CXXFLAGS=-std=c++17 export CXXFLAGS=-std=c++17
LyXConfigureOptions="${LyXConfigureOptions} ${EnableCXXMode}"
;; ;;
esac esac