From e873ac3c909535fee90be6e31a255b7468fa5aa7 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sat, 30 Jul 2022 15:04:37 +0200 Subject: [PATCH] Enhanced build script to use c++17 with EnableCXXMode for Qt6 --- development/LyX-Mac-binary-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh index cc7320de40..8bad69d612 100644 --- a/development/LyX-Mac-binary-release.sh +++ b/development/LyX-Mac-binary-release.sh @@ -285,7 +285,6 @@ while [ $# -gt 0 ]; do shift ;; --enable-cxx11|--enable-cxx-mode=*) - LyXConfigureOptions="${LyXConfigureOptions} ${1}" EnableCXXMode="${1}" shift ;; @@ -423,11 +422,13 @@ case "${EnableCXXMode}" in export CC=cc export CXX="c++ -stdlib=libc++" export CXXFLAGS=-std=c++11 + LyXConfigureOptions="${LyXConfigureOptions} --enable-cxx-mode=11" ;; --enable-cxx-mode=17) export CC=cc export CXX="c++ -stdlib=libc++" export CXXFLAGS=-std=c++17 + LyXConfigureOptions="${LyXConfigureOptions} ${EnableCXXMode}" ;; esac -- 2.39.5