Commit fc355e6506 for openssl.org

commit fc355e65068efe333e0764db1c32c302af8aa7fa
Author: Richard Levitte <levitte@openssl.foundation>
Date:   Tue Nov 17 18:01:48 2026 +0100

    cmake config test: build single-config consumers in Release

    cmake defaults single-config builds with MSVC to Debug, so the dummy
    programs imported the debug CRT (msvcr*d.dll).  Minimal toolchain
    environments carry only the release CRT, so the vs2013 compiler-zoo
    dummies died at load.

    Assisted-by: Pi:moonshotai/kimi-k3
    Signed-off-by: Richard Levitte <levitte@openssl.foundation>
    Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Merge-date: Thu Nov 19 10:10:03 2026
    Merged-from: https://github.com/openssl/openssl/pull/33796

diff --git a/test/recipes/94-test_cmake_config.t b/test/recipes/94-test_cmake_config.t
index cdc51604e2..e1dcae3539 100644
--- a/test/recipes/94-test_cmake_config.t
+++ b/test/recipes/94-test_cmake_config.t
@@ -95,6 +95,15 @@ push @cmake_configure, "-A", "Win32"
 push @cmake_configure, "-A", "ARM64"
     if config('target') =~ /^VC-WIN64-ARM/ && $platform_flag_ok;

+# cmake defaults single-config builds with MSVC to Debug, which pulls in
+# the debug CRT (msvcr*d.dll); minimal toolchain environments carry only
+# the release CRT.  Build the consumer project in Release, like the
+# OpenSSL build itself.  Multi-config generators ignore
+# CMAKE_BUILD_TYPE; with those, the configuration is selected at build
+# time (--config) instead.
+push @cmake_configure, "-DCMAKE_BUILD_TYPE=Release"
+    if config('target') =~ /^VC-/;
+
 # A no-shared OpenSSL build links against the static CRT (Configurations
 # sets /MT for that case); the dummy programs must use the same runtime,
 # or they import msvcr*.dll, which a minimal toolchain environment need