diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-07-25 09:08:01 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-25 14:10:20 -0400 |
| commit | a544c750b1d6d6d6cd3e617da6a060f3e5662a6a (patch) | |
| tree | 5a729cfcf527236a5854887779963f99d8c17e2a /test cases/python/1 basic | |
| parent | 4842b8bcb37fe98f48b08e99210e04640380bffb (diff) | |
| download | meson-a544c750b1d6d6d6cd3e617da6a060f3e5662a6a.tar.gz | |
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: #13414
Fixes: cf0fecfce ("backend/ninja: Fix bug in NinjaRule.length_estimate")
Diffstat (limited to 'test cases/python/1 basic')
0 files changed, 0 insertions, 0 deletions
