Closed nedwardsnae closed 1 year ago
Windows has a 32KiB (including null terminator) command line length limit with CreateProcess (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx)
When StructLayout tries to invoke ClangLayout with a command line that exceeds this limit it will fail. A response file should be used to pass args to clang if this limit is reached or exceeded.
Instead of a response file, a compilation database can be used. I have submitted PR #36 which contains this change.
Windows has a 32KiB (including null terminator) command line length limit with CreateProcess (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx)
When StructLayout tries to invoke ClangLayout with a command line that exceeds this limit it will fail. A response file should be used to pass args to clang if this limit is reached or exceeded.