Ninja / Clang on Windows linker cannot handle "big" rsp file
While building Qt Creator with Clang on Windows I've got the following error:
]Linking CXX shared library lib\qtcreator\plugins\libQmlDesigner.dll
FAILED: lib/qtcreator/plugins/libQmlDesigner.dll lib/qtcreator/plugins/libQmlDesigner.dll.a
cmd.exe /C "cd . && C:\llvm-mingw\bin\c++.exe -O3 -DNDEBUG -shared -o lib\qtcreator\plugins\libQmlDesigner.dll -Wl,--out-implib,lib\qtcreator\plugins\libQmlDesigner.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\QmlDesigner.rsp && cd ."
clang-9: error: unable to execute command: Couldn't execute program 'C:\llvm-mingw\bin\ld.lld.exe': The filename or extension is too long. (0xCE)
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
QmlDesigner.rsp
is 36388 bytes in size. Rsp files are used on Windows to bypass the command line limitation, but it seems there is another limitation.
It seems the limit of the rsp file is 32768 bytes. Sureley big projects will hit this limit, is there any work around to this work around?