diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index b56e1830700f591ace9cec9a8a09f5e5269f4f07..04fb8650e5d03106f4bac18c63d123e3adc4a40b 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -482,6 +482,12 @@ ohos_executable("es2panda") { } } + # The default stack size of the Windows platform is 1024 kb, which might lead to stack overflow. + # Here is to set the stack size of es2abc.exe to 10M, which is the default value for Linux platform. + if (is_mingw) { + ldflags += [ "-Wl,--stack,10485760" ] + } + output_name = "es2abc" install_enable = false part_name = "ets_frontend"