Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta: Use response file for linking shared libraries in GN build
Linking liblagom-web.so produces a ~132K long command line. Ninja passes the whole command line as a single arg to `sh -c <arg>`, and the limit for single arguments (`MAX_ARG_STRLEN`) on Linux is `PAGE_SIZE * 32` == 128K. A response file passes the list of files in a file on disk, which lets us sidestep this problem. Ninja writes response files before invoking commands, and deletes them after (unless `-d keeprsp` is passed to ninja, then it keeps them on disk).
- Loading branch information