From 3a1dc78a6b5fff96117341099e728949fad47f8e Mon Sep 17 00:00:00 2001 From: faumaray Date: Fri, 31 Jul 2026 18:32:42 +0300 Subject: [PATCH] Release: make RelWithDebInfo instead of Release --- CMakePresets.json | 2 +- scripts/release.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 4855ac6..70ed82e 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,7 +13,7 @@ "generator": "Ninja", "binaryDir": "${sourceDir}/build-release", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release", + "CMAKE_BUILD_TYPE": "RelWithDebInfo", "CMAKE_INSTALL_PREFIX": "${sourceDir}/build-release/stage", "BUILD_SHARED_LIBS": "ON", "ECHOION_STATIC_LINK": "OFF", diff --git a/scripts/release.sh b/scripts/release.sh index c2f4a03..4fa6741 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -386,12 +386,12 @@ cmake -E rm -rf "$web_frontend/web-dist" cd "$source_dir" cmake "${configure_args[@]}" ) -build_args=(--build "$build_dir" --config Release) +build_args=(--build "$build_dir" --config RelWithDebInfo) [[ -n $jobs ]] && build_args+=(--parallel "$jobs") cmake "${build_args[@]}" if ((run_tests)); then - ctest --test-dir "$build_dir" --build-config Release --output-on-failure + ctest --test-dir "$build_dir" --build-config RelWithDebInfo --output-on-failure npm --prefix "$web_frontend" test npm --prefix "$web_frontend" run i18n:check fi @@ -399,7 +399,7 @@ fi stage="$build_dir/runtime-stage" safe_remove_tree "$stage" cmake --install "$build_dir" \ - --config Release \ + --config RelWithDebInfo \ --component Runtime \ --prefix "$stage" @@ -576,7 +576,7 @@ if ((package_components)); then while IFS=$'\t' read -r component_id package_id; do component_root="$component_stage_root/$package_id" cmake --install "$build_dir" \ - --config Release \ + --config RelWithDebInfo \ --component "Package${component_id}" \ --prefix "$component_root"