From 840a92c14edd345fcedb283cdecd1440082a9991 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 19 Dec 2021 18:37:51 +0200 Subject: [PATCH] v.builder: change the default stack size for apps produced by MSVC to 16MB --- vlib/v/builder/msvc.v | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vlib/v/builder/msvc.v b/vlib/v/builder/msvc.v index c22709bc3f..f1bbfab4f7 100644 --- a/vlib/v/builder/msvc.v +++ b/vlib/v/builder/msvc.v @@ -280,11 +280,12 @@ pub fn (mut v Builder) cc_msvc() { a << env_cflags } // Default arguments - // volatile:ms enables atomic volatile (gcc _Atomic) - // -w: no warnings - // 2 unicode defines - // /Fo sets the object file name - needed so we can clean up after ourselves properly - a << ['-w', '/we4013', '/volatile:ms', '/Fo"$out_name_obj"'] + // `-w` no warnings + // `/we4013` 2 unicode defines, see https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4013?redirectedfrom=MSDN&view=msvc-170 + // `/volatile:ms` enables atomic volatile (gcc _Atomic) + // `/Fo` sets the object file name - needed so we can clean up after ourselves properly + // `/F 16777216` changes the stack size to 16MB, see https://docs.microsoft.com/en-us/cpp/build/reference/f-set-stack-size?view=msvc-170 + a << ['-w', '/we4013', '/volatile:ms', '/Fo"$out_name_obj"', '/F 16777216'] if v.pref.is_prod { a << '/O2' }