From 0160064f00b158a0a672a04f25fbb0968ac59cdf Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Tue, 30 May 2023 13:47:19 +0200 Subject: Add default msvcrt options for mingw-w64 Signed-off-by: Timo Rothenpieler --- config/libc/mingw-w64.in | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'config') diff --git a/config/libc/mingw-w64.in b/config/libc/mingw-w64.in index 2531fef7..58bb4e8c 100644 --- a/config/libc/mingw-w64.in +++ b/config/libc/mingw-w64.in @@ -17,6 +17,42 @@ config MINGW_SECURE_API bool "Expose secure API prototypes" default y +choice + bool + prompt "Default C Runtime to use" + default MINGW_DEFAULT_MSVCRT_DEFAULT + help + See mingw-w64 help for full list of possible values. + Most commonly one would want to upgrade this to ucrt + for a more modern C runtime. + Targeting specific older/newer MSVC versions is possible + as well though. + +config MINGW_DEFAULT_MSVCRT_DEFAULT + bool + prompt "Default" + help + Don't set a default msvcrt, leave decision to mingw. + +config MINGW_DEFAULT_MSVCRT_MSVCRT + bool + prompt "msvcrt" + +config MINGW_DEFAULT_MSVCRT_UCRT + bool + prompt "ucrt" + +config MINGW_DEFAULT_MSVCRT_CUSTOM + bool + prompt "Custom" + +endchoice + +config MINGW_DEFAULT_MSVCRT + string "Custom default C Runtime to use" + depends on MINGW_DEFAULT_MSVCRT_CUSTOM + default "" + config MINGW_DIRECTX bool "Include DirectX development files" -- cgit v1.2.3