Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/ninja: use 32k byte limit for command lines on !Windows
At an OS level, Unix-like OSes usually have very large or even unlimited sized command line limits. In practice, however, many applications do not handle this (intentionally or otherwise). Notably Wine has the same limits Windows does, 32,768 characters. Because we previously double counted most characters, we papered over most situations that we would need an RSP file on Unix-like OSes with Wine. To fix this issue I have set the command line limit to 32k, this is still a massive command line to pass without an RSP file, and will only cause the use of an RSP file where it is not strictly necessary in a small number of cases, but will fix Wine applications. Projects who wish to not use an RSP file can still set the MESON_RSP_THRESHOLD environment variable to a very large number instead. Fixes: mesonbuild#13414 Fixes: cf0fecf ("backend/ninja: Fix bug in NinjaRule.length_estimate")
- Loading branch information