Open Kojoley opened 1 year ago
1) Correct it's still possible to have too long paths as the compiler can't be part of the calculations for executed commands. And it can't be because the execution can happen in some random shell which B2 can't interpret ahead of time to determine a more accurate answer to how long the command like is. Hence, we guess, with an arbitrary padding.
2) I guess the error message could be improved.
3) Even if we did that, and managed to write the response file, how would that help the shell? As the path would be too long for the shell also.
- Even if we did that, and managed to write the response file, how would that help the shell? As the path would be too long for the shell also.
The maximum length of the string that you can use at the command prompt is 8191 characters.
That's since WinXP, on Win2000 it was 2047 which is still longer that 259.
response-file=auto
doesn't always use response files when it should, it probably does not count the compiler path in estimation?