1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

emcc.bat invocation fixes

This commit is contained in:
Brian Fiete 2022-02-07 14:28:32 -05:00
parent 3635e3830a
commit 22f54c2f12
3 changed files with 6 additions and 4 deletions

View file

@ -8004,7 +8004,7 @@ namespace IDE
}
}*/
const int cArgFileThreshold = 0x7800;
const int cArgFileThreshold = 0x2000 - 1;
public ExecutionQueueCmd QueueRun(String fileName, String args, String workingDir, ArgsFileKind argsFileKind = .None)
{
@ -8012,7 +8012,7 @@ namespace IDE
executionQueueCmd.mFileName = new String(fileName);
executionQueueCmd.mArgs = new String(args);
executionQueueCmd.mWorkingDir = new String(workingDir);
if (args.Length > cArgFileThreshold)
if (fileName.Length + args.Length + 1 > cArgFileThreshold)
{
// Only use UTF16 if we absolutely need to
if ((argsFileKind == .UTF16WithBom) && (!args.HasMultibyteChars()))