Author Topic: CodeBlocks command line size to trigger response file is too big. (patch)  (Read 268 times)

Offline viwrap

  • Single posting newcomer
  • *
  • Posts: 1
It seems CodeBlocks aims for the upper limit which is 32767, in
  • src/plugins/compilergcc/directcommands.cpp
  • src/plugins/contrib/clangd_client/src/LSPclient/client.cpp
which is not entirely true on windows because in some cases it can go down to as low as 8191.

I've experienced this annoying bug while trying to build a big project where CodeBlocks had correctly detected that the initial command was over the 32k limit but the reduced command with the trailing response file would still fail with "Command line is too big" error from the system.

Attached is a simple patch to address this issue.

(I tested compiler.dll with these new values and my project can finally build!)
« Last Edit: Yesterday at 10:11:39 pm by viwrap »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1808
Applied in r13774, thank you.