aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/sbox
Commit message (Collapse)AuthorAgeFilesLines
* Use __SBOX_OUT_DIR__ in sbox output file listColin Cross2018-02-211-6/+3
| | | | | | | | | | | | | | | The path to the output directory may be arbitrarily long, use __SBOX_OUT_DIR__ in the list of output files passed to sbox to avoid expanding it multiple times in the command line. Fixes: ninja: fatal: posix_spawn: Argument list too long 09:40:14 ninja failed with: exit status 1 when building libchrome with a long OUT or OUT_DIR_COMMON_BASE. Bug: 73726635 Test: m checkbuild Change-Id: I59024b2164287c8e531711afd9273b692ce9c28a
* sbox error message now lists the files that were createdJeff Gaston2017-12-011-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which should make debugging faster. Bug: 66921582 Test: ./out/soong/host/linux-x86/bin/sbox --output-root outs --sandbox-path out/.temp/sbox-work -c "cd __SBOX_OUT_DIR__ && mkdir asubdir && mkdir b && touch asubdir/child a b c d e f g h i j k l m n o p" outs/a outs/b outs/z # and observe the below output: mismatch between declared and actual outputs in sbox command(cd out/.temp/sbox-work/sbox343858828 && mkdir asubdir && mkdir b && touch asubdir/child a b c d e f g h i j k l m n o p) in sandbox out/.temp/sbox-work/sbox343858828, failed to create 2 files: b: not a file z: does not exist did create 16 files: a asubdir/child c d e f g h i j ...6 more Change-Id: I75e37834c44d4279dec874701d67ce8bb01b872c
* Have sbox remove its output directory before runningJeff Gaston2017-11-081-5/+23
| | | | | | Bug: 38205169 Test: m -j Change-Id: I73abb9921596c96fa056449bdf8250c2928bceda
* Use flag.Parse in sboxJeff Gaston2017-11-031-53/+60
| | | | | | | | | | | Also removeTempDir -> !keepOutDir Also shorten the help comment Bug: 68336760 Test: rm out -rf && m -j Test: sbox -c # and observe that the output does not have a stacktrace Change-Id: I6fbb385132128ab1273c8398ff2425191049751e
* Make $(depfile) work with sboxJeff Gaston2017-10-301-20/+46
| | | | | | | | | Most notably, the sandbox depfile path should be passed into the tool. Bug: 68336760 Test: m -j checkbuild Change-Id: I22f944a3f57d613fda26de0ea777a915cafcd020
* Make absolute OUT_DIR work with sboxJeff Gaston2017-06-121-5/+37
| | | | | | | | Test: make OUT_DIR=/tmp/abspath Test: make OUT_DIR=relative-out Bug: 35562758 Change-Id: I688d5f6117b194440c5d01c1040033b5671187c2
* Easier debugging of sboxJeff Gaston2017-06-091-4/+24
| | | | | | | | | | Cleanup of some failure messages Also, this leaves the temp directory untouched if a declared output was not created Bug: 35562758 Test: make Change-Id: I8ef1315af80eb327752501f12a331dbdf52ba3e9
* Have Soong try to enforce that genrules declare all their outputs.Jeff Gaston2017-06-092-0/+154
This causes Soong to put the outputs of each genrule into a temporary location and copy the declared outputs back to the output directory. This gets the process closer to having an actual sandbox. Bug: 35562758 Test: make Change-Id: I8048fbf1a3899a86fb99d71b60669b6633b07b3e