From 311fe880bb6409289ca248ce06c37bd5d2968e70 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 5 May 2024 16:11:34 +0800 Subject: [PATCH] stack size doesn't work in linux --- RedPandaIDE/compiler/compilerinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RedPandaIDE/compiler/compilerinfo.cpp b/RedPandaIDE/compiler/compilerinfo.cpp index c44caf60..2e31cc3a 100644 --- a/RedPandaIDE/compiler/compilerinfo.cpp +++ b/RedPandaIDE/compiler/compilerinfo.cpp @@ -217,7 +217,9 @@ void CompilerInfo::prepareCompilerOptions() // Linker groupName = QObject::tr("Linker"); +#ifdef Q_OS_WIN addNumberOption(LINK_CMD_OPT_STACK_SIZE, QObject::tr("Stack Size"), groupName, false, false, true, "-Wl,--stack,","MB",1024*1024,12,0,99999); +#endif addOption(CC_CMD_OPT_USE_PIPE, QObject::tr("Use pipes instead of temporary files during compilation (-pipe)"), groupName, true, true, false, "-pipe"); //addOption(LINK_CMD_OPT_LINK_OBJC, QObject::tr("Link an Objective C program (-lobjc)"), groupName, false, false, true, "-lobjc");