platform_build_soong/cmd/sbox
Kevin DuBois 0a5da7025e sbox: run commands using script for large commands
Linux has limit of 32 pages for a single argument. Sbox's method of
handling commands as a single large string can run into this limitation.

Write the large command to a script file and then execute that file.
This better accommodates the large commands, and leaves a script in the
temporary directory useful for manual inspection if necessary.

Bug: 177070955
Bug: 174232579
Fixes: 202297224
Test: m
Test: make particular target with very long command exceeding limit.
Change-Id: Ia298fdfd7a759821c37f540deaf800026041e511
2021-11-12 00:48:34 +00:00
..
sbox_proto Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
Android.bp Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
sbox.go sbox: run commands using script for large commands 2021-11-12 00:48:34 +00:00