From 651176e83cc2b84103de8dbac31c35f45987876d Mon Sep 17 00:00:00 2001 From: mcoms Date: Sat, 30 Nov 2024 21:30:56 -0500 Subject: [PATCH] add toolchain arg to cmake to force 19.40 instead of changing system props Signed-off-by: mcoms --- rvcmds.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rvcmds.sh b/rvcmds.sh index bd7abd500..775751cfb 100755 --- a/rvcmds.sh +++ b/rvcmds.sh @@ -24,10 +24,12 @@ fi # Linux if [[ "$OSTYPE" == "linux"* ]]; then CMAKE_GENERATOR="${CMAKE_GENERATOR:-Ninja}" + RV_TOOLCHAIN="" # MacOS elif [[ "$OSTYPE" == "darwin"* ]]; then CMAKE_GENERATOR="${CMAKE_GENERATOR:-Ninja}" + RV_TOOLCHAIN="" # Windows elif [[ "$OSTYPE" == "msys"* ]]; then @@ -35,6 +37,7 @@ elif [[ "$OSTYPE" == "msys"* ]]; then WIN_PERL="${WIN_PERL:-c:/Strawberry/perl/bin}" CMAKE_WIN_ARCH="${CMAKE_WIN_ARCH:--A x64}" SETUPTOOLS_USE_DISTUTILS=stdlib + RV_TOOLCHAIN="-T v143,version=14.40" else echo "OS does not seem to be linux, darwin or msys. Exiting." @@ -97,11 +100,10 @@ RV_INST_DEBUG="${RV_INST_DEBUG:-${RV_HOME}/_install_debug}" RV_BUILD_PARALLELISM="${RV_BUILD_PARALLELISM:-$(python3 -c 'import os; print(os.cpu_count())')}" # ALIASES: Basic commands - alias rvenv="rvenv_shell" alias rvsetup="rvenv && SETUPTOOLS_USE_DISTUTILS=${SETUPTOOLS_USE_DISTUTILS} python3 -m pip install --upgrade -r ${RV_HOME}/requirements.txt" -alias rvcfg="rvenv && cmake -B ${RV_BUILD} -G \"${CMAKE_GENERATOR}\" ${CMAKE_WIN_ARCH} -DCMAKE_BUILD_TYPE=Release -DRV_DEPS_QT5_LOCATION=${QT_HOME} -DRV_DEPS_WIN_PERL_ROOT=${WIN_PERL}" -alias rvcfgd="rvenv && cmake -B ${RV_BUILD_DEBUG} -G \"${CMAKE_GENERATOR}\" ${CMAKE_WIN_ARCH} -DCMAKE_BUILD_TYPE=Debug -DRV_DEPS_QT5_LOCATION=${QT_HOME} -DRV_DEPS_WIN_PERL_ROOT=${WIN_PERL}" +alias rvcfg="rvenv && cmake -B ${RV_BUILD} -G \"${CMAKE_GENERATOR}\" ${RV_TOOLCHAIN} ${CMAKE_WIN_ARCH} -DCMAKE_BUILD_TYPE=Release -DRV_DEPS_QT5_LOCATION=${QT_HOME} -DRV_DEPS_WIN_PERL_ROOT=${WIN_PERL}" +alias rvcfgd="rvenv && cmake -B ${RV_BUILD_DEBUG} -G \"${CMAKE_GENERATOR}\" ${RV_TOOLCHAIN} ${CMAKE_WIN_ARCH} -DCMAKE_BUILD_TYPE=Debug -DRV_DEPS_QT5_LOCATION=${QT_HOME} -DRV_DEPS_WIN_PERL_ROOT=${WIN_PERL}" alias rvbuildt="rvenv && cmake --build ${RV_BUILD} --config Release -v --parallel=${RV_BUILD_PARALLELISM} --target " alias rvbuildtd="rvenv && cmake --build ${RV_BUILD_DEBUG} --config Debug -v --parallel=${RV_BUILD_PARALLELISM} --target " alias rvbuild="rvenv && rvbuildt main_executable"