From 550aace91ce3e1f93a6b688c9d5a69175bddf77d Mon Sep 17 00:00:00 2001 From: R-Goc Date: Sat, 24 May 2025 23:53:14 +0200 Subject: [PATCH] Meta: Add flags for compilation and testing of js This commit adds flags necessary for compilation and testing of js.exe. The stack size is increased to match linux. --- Meta/CMake/common_compile_options.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meta/CMake/common_compile_options.cmake b/Meta/CMake/common_compile_options.cmake index 1c09174be98..add51131872 100644 --- a/Meta/CMake/common_compile_options.cmake +++ b/Meta/CMake/common_compile_options.cmake @@ -61,12 +61,15 @@ if (WIN32) add_compile_definitions(NAME_MAX=255) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) add_compile_options(-Wno-deprecated-declarations) + add_compile_definitions(_WIN32_WINNT=0x0A00) endif() if (MSVC) add_cxx_compile_options(/W4) # disable exceptions add_cxx_compile_options(/EHs-) + # increase stack size reserve to match linux + add_link_options(/STACK:0x800000) # disable floating-point expression contraction add_cxx_compile_options(/fp:precise) else()