We use MSBuild to build our Delphi projects. Sometimes the DCC32 commandline gets too long (>32K characters) and fails. This is caused by our Search Path. We have already shorten this path using relative paths, combining sources, etc. This fixed it in the past.
Now we encounter this again and I am looking for a final solution for this. Restructuring the codebase is something I want to avoid, because we use a lot of third-party components which I don't want to mix (and keep in seperate directories).
I have read about response files
for MSBuild, but I have no idea how I can get this working for DCC32. I have always mentioned that the same Search Path is passed several times to DCC32 with different flags (-U, -I, -R, -U). The -R (which is used for the resource compiler) does not have to use the exact same Search Path, but unfortunately it always inherits the Search Path from the compiler and I don't see options to ignore that.
Who has any idea how to solve this and find a solution to prevent these issues in the future?